library test /*isLegacy*/; | |
// | |
// Problems in library: | |
// | |
// pkg/front_end/testcases/inference/for_in_loop_promotion.dart:5:1: Error: Library doesn't support null safety. | |
// // @dart=2.9 | |
// ^^^^^^^^^^^^ | |
// | |
import self as self; | |
import "dart:core" as core; | |
static method test(core::List<core::num*>* nums) → void { | |
for (core::num* x in nums) { | |
if(x is{ForLegacy} core::int*) { | |
core::int* y = x{core::int*}; | |
} | |
} | |
} | |
static method main() → dynamic {} |