blob: 26fd1c725487f2c374ddce2ffb078f95716032fd [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:11:27: Error: Getter not found: 'foo1'.
// A Function() test1() => A.foo1; // Ok.
// ^^^^
//
// pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:12:27: Error: Getter not found: 'foo2'.
// A Function() test2() => A.foo2; // Error.
// ^^^^
//
// pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:13:27: Error: Getter not found: 'new'.
// A Function() test3() => A.new; // Ok.
// ^^^
//
// pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:14:30: Error: Getter not found: 'new'.
// A Function(int) test4() => A.new; // Error.
// ^^^
//
import self as self;
import "dart:core" as core;
class A extends core::Object {
constructor foo1() self::A
: super core::Object::•() {}
constructor foo2(core::int x) self::A
: super core::Object::•() {}
constructor •() self::A
: super core::Object::•() {}
}
static method test1() () self::A
return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:11:27: Error: Getter not found: 'foo1'.
A Function() test1() => A.foo1; // Ok.
^^^^";
static method test2() () self::A
return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:12:27: Error: Getter not found: 'foo2'.
A Function() test2() => A.foo2; // Error.
^^^^";
static method test3() () self::A
return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:13:27: Error: Getter not found: 'new'.
A Function() test3() => A.new; // Ok.
^^^";
static method test4() (core::int) self::A
return invalid-expression "pkg/front_end/testcases/constructor_tearoffs/nongeneric_tearoff_with_context.dart:14:30: Error: Getter not found: 'new'.
A Function(int) test4() => A.new; // Error.
^^^";
static method main() dynamic {}