blob: 5b8f1c0e65bcc7a6b4361585f17caea4dfe53ef2 [file] [log] [blame]
library test /*isLegacy*/;
import self as self;
import "dart:core" as core;
static method main() dynamic {
core::Object* o = 1;
try {
assert(o as{TypeError,ForLegacy} core::bool*);
assert(false, "no exception");
}
on core::TypeError* catch(no-exception-var) {
}
}