blob: 457a7971b13add87e2736dedf0c884bdc8a0fa61 [file]
library test /*isLegacy*/;
//
// Problems in library:
//
// pkg/front_end/testcases/runtime_checks/implicit_downcast_while.dart:5:1: Error: Library doesn't support null safety.
// // @dart=2.9
// ^^^^^^^^^^^^
//
import self as self;
import "dart:core" as core;
static method main() dynamic {
core::Object* o = 1;
try {
while (o as{TypeError,ForLegacy} core::bool*) {
}
throw "no exception";
}
on core::TypeError* catch(no-exception-var) {
}
}