Skip to content

Add rule about constant expressions where generic function instantiation is applied #1848

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 9, 2021

Conversation

eernstg
Copy link
Member

@eernstg eernstg commented Sep 8, 2021

Based on an inquiry in an email thread, we decided that the following generalization is not overly heavy to implement. This PR specifies the generalisation:

  • e<T1..Tk> is a potentially constant expression when e is a potentially constant expression and T1..Tk is a type list.
  • e<T1..Tk> is a constant expression when e is constant and T1..Tk are constant type expressions (and a few more things, see the actual changes for details).

See dart-lang/sdk#47150 for details.

@eernstg
Copy link
Member Author

eernstg commented Sep 8, 2021

PTAL

@lrhn
Copy link
Member

lrhn commented Sep 9, 2021

Add a version number increment and entry in the Versions section.

@lrhn lrhn merged commit fced775 into master Sep 9, 2021
@lrhn lrhn deleted the specify_constant_function_instantiation_sep21 branch September 9, 2021 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants