compiler error when . is in any varName

This commit is contained in:
2024-02-17 09:14:23 -07:00
parent 597e242135
commit fe61d3edeb

View File

@@ -137,7 +137,7 @@ class Helpers {
public static function varName(formName:String, nameExp:ReaderExp, nameType = "variable") {
return switch (nameExp.def) {
case Symbol(name):
case Symbol(name) if (!name.contains(".")):
name;
case MetaExp(_, nameExp) | TypedExp(_, nameExp):
varName(formName, nameExp);