Fixed type resolution for built-in types
parent
c9c913eaae
commit
6185f8847c
|
@ -68,18 +68,14 @@ public final class TypeChecker
|
||||||
Type foundType;
|
Type foundType;
|
||||||
|
|
||||||
/* Check if the type is built-in */
|
/* Check if the type is built-in */
|
||||||
/* TODO: Just use `getBuiltInType`, if null then yeah - not built-in */
|
foundType = getBuiltInType(typeString);
|
||||||
if(isBuiltInType(typeString))
|
|
||||||
{
|
/* If it isn't then check for a type (resolve it) */
|
||||||
/* TODO: Get the built-in type */
|
if(!foundType)
|
||||||
foundType = getBuiltInType(typeString);
|
|
||||||
}
|
|
||||||
/* If not built-in, resolve it */
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
foundType = cast(Type)resolver.resolveBest(c, typeString);
|
foundType = cast(Type)resolver.resolveBest(c, typeString);
|
||||||
}
|
}
|
||||||
|
|
||||||
return foundType;
|
return foundType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue