blob: 4d09beb5759434eeaa1899b82e4a8aab88f2f624 [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/rasta/issue_000044.dart:7:8: Error: Expected a function body or '=>'.
// Try adding {}.
// a b(c) = d;
// ^
//
// pkg/front_end/testcases/rasta/issue_000044.dart:14:29: Error: Only factory constructor can specify '=' redirection.
// Try making this a factory constructor, or remove the redirection.
// C.missingFactoryKeyword() = C.constant;
// ^
//
// pkg/front_end/testcases/rasta/issue_000044.dart:21:28: Error: Only factory constructor can specify '=' redirection.
// Try making this a factory constructor, or remove the redirection.
// C notEvenAConstructor(a) = h;
// ^
//
// pkg/front_end/testcases/rasta/issue_000044.dart:7:1: Error: Type 'a' not found.
// a b(c) = d;
// ^
//
// pkg/front_end/testcases/rasta/issue_000044.dart:21:30: Error: Couldn't find constructor 'h'.
// C notEvenAConstructor(a) = h;
// ^
//
import self as self;
import "dart:core" as core;
class C extends core::Object /*hasConstConstructor*/ {
static final field dynamic _redirecting# = <dynamic>[self::C::good]/*isLegacy*/;
const constructor constant() self::C
: super core::Object::•()
;
constructor missingFactoryKeyword() self::C
;
static factory good() self::C
return new self::C::constant();
method notEvenAConstructor(dynamic a) self::C
;
}
static method b(dynamic c) invalid-type
;
static method main() dynamic
;
Extra constant evaluation status:
Evaluated: ConstructorTearOff @ org-dartlang-testcase:///issue_000044.dart:9:7 -> ConstructorTearOffConstant(C.good)
Extra constant evaluation: evaluated: 3, effectively constant: 1