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):
switch (classType.kind) {
case KTypeParameter(_):
TPath({
name: classType.name,
pack: [],
});
direct();//TODO: check if the parameter is in scope, in which case the name can simply be used
default:
TPath(toTypePath(classType, params));
}