blob: 5f286147b19d6a6c57b68626e13595a1370db8a4 [file] [log] [blame]
library /*isNonNullableByDefault*/;
import self as self;
import "dart:core" as core;
static method foo<T extends core::Object? = dynamic, S extends core::Object? = dynamic>(core::bool b, self::foo::T% t, self::foo::S% s) dynamic {
if(t is{ForNonNullableByDefault} core::Object) {
return b ?{core::Object?} t{self::foo::T% & core::Object /* '%' & '!' = '!' */} : s;
}
else {
return null;
}
}
static method main() dynamic {}