blob: bbfdc97178bf5de39418b31c89ed1ed3cfe1c134 [file] [log] [blame]
library opted_out_lib /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd_mixed/issue41496b.dart:5:1: Error: A library can't opt out of non-nullable by default, when in nnbd-strong mode.
// // @dart=2.6
// ^^^^^^^^^^^^
//
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
;