blob: b6875d196c6c0ccd513fbe05f63bb969c3348bf2 [file] [log] [blame]
library test;
import self as self;
import "dart:core" as core;
typedef ToValue<contravariant T extends core::Object* = dynamic> = (T*) →* void;
static method main() dynamic {
function f<T extends core::Object* = dynamic>(T* x) (T*) →* void
return null;
(core::int*) →* void x = f<core::int*>(42){(core::int*) →* (core::int*) →* void};
(core::int*) →* void y = f<core::int*>(42){(core::int*) →* (core::int*) →* void};
(core::int*) →* void takesInt = x;
takesInt = y;
}