blob: c9f7109575071db5b1f2ea5b27a3607296a35aa0 [file] [log] [blame]
// @dart = 2.6
import 'never_opt_out_lib.dart';
Never optOutNever;
class B extends A {
Null get neverProperty => null;
Null get nullProperty => null;
Null neverField;
Null neverMethod(Null value) => value;
Null nullField;
Null nullMethod(Null value) => value;
void set neverProperty(Null value) {}
void set nullProperty(Null value) {}
}
class C extends A {
Never get neverProperty => null;
Never get nullProperty => null;
Never neverField;
Never neverMethod(Never value) => value;
Never nullField;
Never nullMethod(Never value) => value;
void set neverProperty(Never value) {}
void set nullProperty(Never value) {}
}
class GenericClass<T> {}
genericMethod<T>() {}
main() {}
throws(void Function() f) {}
var inferredOptOutNever = optInNever;