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; | |
} | |
} |