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