From f4db6faa8017bbade0e94828e838b8343dab2554 Mon Sep 17 00:00:00 2001 From: Nicolas Cannasse Date: Thu, 28 Nov 2019 14:20:55 +0100 Subject: [PATCH] fixed follow wrt recursion --- hscript/Checker.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hscript/Checker.hx b/hscript/Checker.hx index 43353a5..e52eb2e 100644 --- a/hscript/Checker.hx +++ b/hscript/Checker.hx @@ -683,9 +683,9 @@ class Checker { public function follow( t : TType ) { return switch( t ) { case TMono(r): if( r.r != null ) follow(r.r) else t; - case TType(t,args): apply(t.t, t.params, args); + case TType(t,args): follow(apply(t.t, t.params, args)); case TNull(t): follow(t); - case TLazy(f): f(); + case TLazy(f): follow(f()); default: t; } }