| library /*isNonNullableByDefault*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/general/constructor_initializer_invalid.dart:5:24: Error: Expected an initializer. |
| // class C1 { var f; C1() : ; } |
| // ^ |
| // |
| // pkg/front_end/testcases/general/constructor_initializer_invalid.dart:6:26: Error: Expected an assignment after the field name. |
| // To initialize a field, use the syntax 'name = value'. |
| // class C2 { var f; C2() : f; } |
| // ^ |
| // |
| // pkg/front_end/testcases/general/constructor_initializer_invalid.dart:7:26: Error: Expected an assignment after the field name. |
| // To initialize a field, use the syntax 'name = value'. |
| // class C3 { var f; C3() : f++; } |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class C1 extends core::Object { |
| field dynamic f; |
| constructor •() → self::C1 |
| ; |
| } |
| class C2 extends core::Object { |
| field dynamic f; |
| constructor •() → self::C2 |
| ; |
| } |
| class C3 extends core::Object { |
| field dynamic f; |
| constructor •() → self::C3 |
| ; |
| } |
| static method main() → dynamic |
| ; |