mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-01-13 18:30:21 +00:00
Fixed problem with constantifying struct initializers. Closes #653
This commit is contained in:
parent
09d11f220b
commit
799f681991
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user