diff --git a/lime/app/Event.hx b/lime/app/Event.hx index fe46ff711..4fe904501 100644 --- a/lime/app/Event.hx +++ b/lime/app/Event.hx @@ -65,9 +65,9 @@ class Event { var typeArgs; var typeResult; - switch (Context.getLocalType ()) { + switch (Context.follow (Context.getLocalType ())) { - case TInst (_, [ TFun (args, result) ]): + case TInst (_, [ Context.follow (_) => TFun (args, result) ]): typeArgs = args; typeResult = result;