Improve Type to ComplexType conversion for type parameters.
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user