Mandatory "allowTypes" for Property + "isVar" parsing

This commit is contained in:
Jaime Humberto Macias Bustamante
2025-06-12 14:24:51 -07:00
parent 1a9c0c68ac
commit a3a8f602ea
3 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -703,7 +703,7 @@ class Interp {
}
case EIdent(id):
return resolve(id);
case EVar(n, _, e, isPublic, isStatic, _, isFinal, _, getter, setter):
case EVar(n, _, e, isPublic, isStatic, _, isFinal, _, getter, setter, isVar):
var hasGetSet:Bool = (getter != null || setter != null);
if(depth > 0 && hasGetSet) {
error(ECustom("Property Accessor for local variables is not allowed"));