| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/regress/issue_37285.dart:6:17: Error: Expected an identifier, but got ']'. |
| // Try inserting an identifier before ']'. |
| // C() : super()[]; |
| // ^ |
| // |
| // pkg/front_end/testcases/regress/issue_37285.dart:6:9: Error: Can't use 'super' as an expression. |
| // To delegate a constructor to a super constructor, put the super call as an initializer. |
| // C() : super()[]; |
| // ^ |
| // |
| // pkg/front_end/testcases/regress/issue_37285.dart:6:16: Error: Not a valid initializer. |
| // To initialize a field, use the syntax 'name = value'. |
| // C() : super()[]; |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class C extends core::Object { |
| constructor •() → self::C |
| : final dynamic #t1 = invalid-expression "pkg/front_end/testcases/regress/issue_37285.dart:6:16: Error: Not a valid initializer. |
| To initialize a field, use the syntax 'name = value'. |
| C() : super()[]; |
| ^" |
| ; |
| } |
| static method main() → dynamic { |
| new self::C::•(); |
| } |