mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-08-09 20:25:17 +00:00
Fixed problem with constantifying struct initializers. Closes #653
This commit is contained in:
@@ -110,6 +110,8 @@ public class SymbolTypeInference {
|
||||
if(structMember == null)
|
||||
throw new CompileError("Unknown struct member " + structMemberRef.getMemberName() + " in struct " + structType.getTypeName());
|
||||
return structMember.getType();
|
||||
} else if(structType.equals(SymbolType.VAR)) {
|
||||
return SymbolType.VAR;
|
||||
} else {
|
||||
throw new CompileError("Dot applied to non-struct "+ structMemberRef.getStruct().toString());
|
||||
}
|
||||
|
Reference in New Issue
Block a user