return a struct type if no primitive type with the given name was found
This commit is contained in:
@@ -21,7 +21,7 @@ public abstract class Type {
|
||||
case "bool": return getBooleanType();
|
||||
case "int": return getIntegerType();
|
||||
case "float": return getFloatType();
|
||||
default: throw new RuntimeException("Unknown type " + name);
|
||||
default: return new StructType(name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user