KT-6803 Subtyping breaks on star-projections for recursive generics
Star-projections have upper bounds of the form "parameter's bound where all parameter of the same class are substituted with their star-projections" #KT-6803 Fixed
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ public class TypeDeserializer(
|
||||
protos.map { proto ->
|
||||
val type = type(proto.getType())
|
||||
if (proto.getProjection() == ProtoBuf.Type.Argument.Projection.STAR)
|
||||
StarProjectionImpl(type)
|
||||
TypeBasedStarProjectionImpl(type)
|
||||
else TypeProjectionImpl(variance(proto.getProjection()), type)
|
||||
}.toReadOnlyList()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user