blob: 510feadac6457fd23457e5de7c13d5c0c04ff301 [file] [log] [blame]
library;
import self as self;
extension type N(Null _) {
abstract extension-type-member representation-field get _() Null;
constructor = self::N|constructor#;
constructor tearoff = self::N|constructor#_#new#tearOff;
}
static extension-type-member method N|constructor#(Null _) → self::N% /* erasure=Null, declared=! */ {
lowered final self::N% /* erasure=Null, declared=! */ #this = _;
return #this;
}
static extension-type-member method N|constructor#_#new#tearOff(Null _) → self::N% /* erasure=Null, declared=! */
return self::N|constructor#(_);
static method main() void {
self::N% /* erasure=Null, declared=! */ n = self::N|constructor#(null);
}
Extra constant evaluation status:
Evaluated: FactoryConstructorInvocation @ org-dartlang-testcase:///issue53610.dart:8:11 -> NullConstant(null)
Extra constant evaluation: evaluated: 5, effectively constant: 1