Improve Type to ComplexType conversion for type parameters.

This commit is contained in:
Juraj Kirchheim
2017-12-18 11:28:23 +01:00
parent d02306eebd
commit a164b335ed

View File

@@ -70,10 +70,7 @@ class Sisyphus {
case TInst(_.get() => classType, params): case TInst(_.get() => classType, params):
switch (classType.kind) { switch (classType.kind) {
case KTypeParameter(_): case KTypeParameter(_):
TPath({ direct();//TODO: check if the parameter is in scope, in which case the name can simply be used
name: classType.name,
pack: [],
});
default: default:
TPath(toTypePath(classType, params)); TPath(toTypePath(classType, params));
} }