added error on missing event args

This commit is contained in:
Nicolas Cannasse
2019-12-16 13:28:40 +01:00
parent 5e620d784e
commit b8641779bd
+2
View File
@@ -997,6 +997,8 @@ class Checker {
}
this.locals.set(a.name, a.t);
}
if( withArgs != null && targs.length < withArgs.length )
error("Missing "+(withArgs.length - targs.length)+" arguments ("+[for( i in targs.length...withArgs.length ) typeStr(withArgs[i].t)].join(",")+")", expr);
typeExpr(body,NoValue);
allowDefine = oldGDef;
allowReturn = oldRet;