Main.hx 195 B

12345678910111213
  1. function passMethod<T>(f:T->Void) {}
  2. @:generic
  3. class Generic<T> {
  4. var foo:T;
  5. public function new()
  6. {
  7. passMethod(method);
  8. }
  9. function method(value:T) {}
  10. }
  11. typedef Instance = Generic<Int>;