blob: 95a52e8d1dd9fedc52f105e8cdb0c27584e25a68 [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;
};
}
static method main() dynamic {}