Closed
Description
CFE doesn't report errors expected below
// SharedOptions=--enable-experiment=inline-class
extension type const ET1(int id) {
ET1.c() : id = 0;
factory ET1.f(int id) = ET1.c;
// ^^^^^
// [analyzer] unspecified
// [cfe] unspecified
}
extension type ET2(int id) {
ET2.n(int a, int b) : id = a + b;
factory ET2.f(int id) = ET2.n;
// ^^^^^
// [analyzer] unspecified
// [cfe] unspecified
}
main() {
print(ET1);
print(ET2);
}
This causes failure of LanguageFeatures/Extension-types/static_analysis_extension_types_A21_t06.dart
in CFE
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity