We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
The following program is expected to provoke in a compile-time error.
class A { const A(); } test() => const <Record>{ const (1, 2, A()), const (1, 2, A()) };
Currently it's accepted by the CFE, and the constant entry contains two references to the same constant #C4.
#C4
library /*isNonNullableByDefault*/; import self as self; import "dart:core" as core; class A extends core::Object /*hasConstConstructor*/ { const constructor •() → self::A : super core::Object::•() ; } static method test() → dynamic return #C5; constants { #C1 = 1 #C2 = 2 #C3 = self::A {} #C4 = (#C1, #C2, #C3) #C5 = <core::Record*>{#C4, #C4} }
The text was updated successfully, but these errors were encountered:
c251133
johnniwinther
No branches or pull requests
The following program is expected to provoke in a compile-time error.
Currently it's accepted by the CFE, and the constant entry contains two references to the same constant
#C4
.The text was updated successfully, but these errors were encountered: