blob: e3dae370b81dd7fc30561dd912a99d870c615874 [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/issue41496.dart:7:11: Error: Field 'f1' should be initialized because its type 'void Function()' doesn't allow null.
// LegacyFoo f1;
// ^^
//
// pkg/front_end/testcases/nnbd_mixed/issue41496.dart:10:20: Error: Field 'f2' should be initialized because its type 'void Function()' doesn't allow null.
// static LegacyFoo f2;
// ^^
//
import self as self;
import "dart:core" as core;
import "org-dartlang-testcase:///issue41496_lib.dart";
class C extends core::Object {
static field () void f2 = null;
synthetic constructor •() self::C
: super core::Object::•()
;
}
static field () void f1;
static method main() dynamic {
new self::C::•();
}
library opted_out_lib;
import self as self2;
typedef LegacyFoo = () →* void;
static method test(() →* void f) dynamic {}