blob: 3863359769ddc67f419df05c4f5cc616a7a1e6cd [file] [log] [blame]
library test;
import self as self;
import "dart:core" as core;
typedef FunctionReturningNum = () core::num;
static method test() dynamic {
core::int i = 1;
core::Object o = 1;
() core::num a = () core::int => i;
() core::num b = (() core::Object => o) as{TypeError} () core::num;
() core::num c = () core::int {
return i;
};
() core::num d = () core::num {
return o as{TypeError} core::num;
};
}
static method main() dynamic {}