return a struct type if no primitive type with the given name was found

This commit is contained in:
2020-02-04 19:16:41 +01:00
parent e971b8b91e
commit b5086b44f0

View File

@@ -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);
}
}