blob: 3394c4aad5fd05744691baf4a35d258473e17eab [file] [log] [blame]
library test /*isLegacy*/;
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::num* => o as{TypeError,ForLegacy} core::num*;
() →* core::num* c = () core::int* {
return i;
};
() →* core::num* d = () core::num* {
return o as{TypeError,ForLegacy} core::num*;
};
}
static method main() dynamic {}