blob: d43e2f90cdc1b9cae01f9a4488e99af76cd434a1 [file] [log] [blame]
library test /*isLegacy*/;
//
// Problems in library:
//
// pkg/front_end/testcases/inference/type_promotion_ignores_local_functions.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//
import self as self;
import "dart:core" as core;
typedef FunctionReturningInt = () →* core::int*;
static method main() dynamic {
function f() core::num*
return 0;
if(f is{ForLegacy} () →* core::int*) {
f;
}
}