Skip to content
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

co19/LanguageFeatures/Constructor-tear-offs/named_constructor_A08_t01 issue #1151

Closed
eernstg opened this issue Aug 12, 2021 · 2 comments
Closed
Assignees

Comments

@eernstg
Copy link
Member

eernstg commented Aug 12, 2021

Said test uses v1 in constant expressions several times, but v1 is not constant; similarly for v2:

tests/co19/src/LanguageFeatures/Constructor-tear-offs/named_constructor_A08_t01.dart:27:14: Error: Not a constant expression.
  const c1 = v1(3, 14);
             ^^
tests/co19/src/LanguageFeatures/Constructor-tear-offs/named_constructor_A08_t01.dart:28:14: Error: Not a constant expression.
  const c2 = v1(3, 14);
             ^^
tests/co19/src/LanguageFeatures/Constructor-tear-offs/named_constructor_A08_t01.dart:31:14: Error: Not a constant expression.
  const c3 = v2();
             ^^
tests/co19/src/LanguageFeatures/Constructor-tear-offs/named_constructor_A08_t01.dart:32:14: Error: Not a constant expression.
  const c4 = v2();
             ^^
@eernstg
Copy link
Member Author

eernstg commented Aug 12, 2021

co19/LanguageFeatures/Constructor-tear-offs/named_constructor_A08_t02 seems to have the same issue.

@sgrekhov sgrekhov self-assigned this Aug 13, 2021
@sgrekhov
Copy link
Contributor

@eernstg thank you. Please note dart-lang/sdk#46899

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants