blob: b08c2be2d735022691e81ca1c6bab9a39591547c [file] [log] [blame]
library;
import self as self;
import "dart:core" as core;
import "org-dartlang-testcase:///opt_out_lib.dart";
typedef F = () →? void;
class A<T extends core::Object? = dynamic> extends core::Object {
late field core::int field;
synthetic constructor •() self::A<self::A::T%>
;
}
class B extends self::A<core::String?> {
synthetic constructor •() self::B
;
}
static field core::List<core::String?> l;
static field core::String? s;
static field core::String t;
late static field core::int field;
static method method(() →? void f, {required core::int a}) void
;
static method main() dynamic
;
static method noErrors() dynamic
;
library;
//
// Problems in library:
//
// pkg/front_end/testcases/nnbd/opt_out_lib.dart:18:25: Error: Null safety features are disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to at least `@dart=2.7`.
// class B extends A<String?> {}
// ^
// pkg/front_end/testcases/nnbd/opt_out_lib.dart:5:1: Context: This is the annotation that opts out this library from null safety features.
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd/opt_out_lib.dart:20:28: Error: Null safety features are disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to at least `@dart=2.7`.
// typedef F = void Function()?;
// ^
// pkg/front_end/testcases/nnbd/opt_out_lib.dart:5:1: Context: This is the annotation that opts out this library from null safety features.
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd/opt_out_lib.dart:22:12: Error: Null safety features are disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to at least `@dart=2.7`.
// List<String?> l = [];
// ^
// pkg/front_end/testcases/nnbd/opt_out_lib.dart:5:1: Context: This is the annotation that opts out this library from null safety features.
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd/opt_out_lib.dart:23:7: Error: Null safety features are disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to at least `@dart=2.7`.
// String? s = null;
// ^
// pkg/front_end/testcases/nnbd/opt_out_lib.dart:5:1: Context: This is the annotation that opts out this library from null safety features.
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd/opt_out_lib.dart:28:21: Error: Null safety features are disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to at least `@dart=2.7`.
// void method(void f()?, {int a}) {}
// ^
// pkg/front_end/testcases/nnbd/opt_out_lib.dart:5:1: Context: This is the annotation that opts out this library from null safety features.
// // @dart=2.5
// ^^^^^^^^^^^^
//
// pkg/front_end/testcases/nnbd/opt_out_lib.dart:24:10: Error: Null safety features are disabled for this library.
// Try removing the `@dart=` annotation or setting the language version to at least `@dart=2.7`.
// var t = s!;
// ^
// pkg/front_end/testcases/nnbd/opt_out_lib.dart:5:1: Context: This is the annotation that opts out this library from null safety features.
// // @dart=2.5
// ^^^^^^^^^^^^
//
import self as self2;
import "dart:core" as core;
typedef F = () →? void;
class A<T extends core::Object* = dynamic> extends core::Object {
field core::int* field;
synthetic constructor •() self2::A<self2::A::T*>*
;
}
class B extends self2::A<core::String?> {
synthetic constructor •() self2::B*
;
}
static field core::List<core::String?>* l;
static field core::String? s;
static field core::String* t;
static field core::int* field;
static method method(() →? void f, {core::int* a}) void
;
static method errors() dynamic
;