blob: cd8f0cb894fe6e01009572367356700309e21e0c [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/regress/issue_35258.dart:13:3: Error: 'C' is already declared in this scope.
// C(this.d) {}
// ^
// pkg/front_end/testcases/regress/issue_35258.dart:12:3: Context: Previous declaration of 'C'.
// C() {}
// ^
//
// pkg/front_end/testcases/regress/issue_35258.dart:6:7: Error: Can't use 'C' because it is declared more than once.
// new C(42);
// ^
//
// pkg/front_end/testcases/regress/issue_35258.dart:10:9: Error: Final field 'd' is not initialized.
// Try to initialize the field in the declaration or in every constructor.
// final d;
// ^
//
import self as self;
import "dart:core" as core;
class C extends core::Object {
final field dynamic d = null;
constructor •() self::C
: super core::Object::•() {}
}
static method main() dynamic {
invalid-expression "pkg/front_end/testcases/regress/issue_35258.dart:6:7: Error: Can't use 'C' because it is declared more than once.
new C(42);
^";
}