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