From a0fca25fa0fef282ac273cc7c4da8228db75c620 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Tue, 6 Sep 2016 10:51:47 -0700 Subject: [PATCH] Improve lime.app.Event macro (close #806) --- lime/app/Event.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;