Minor: fixed toString

This commit is contained in:
Svetlana Isakova
2014-12-16 14:41:47 +03:00
parent bda5bab057
commit b0889f0760
@@ -58,7 +58,7 @@ public class CapturedTypeConstructor(
override fun getAnnotations() = Annotations.EMPTY override fun getAnnotations() = Annotations.EMPTY
override fun toString() = "Captured($typeProjection)" override fun toString() = "CapturedTypeConstructor($typeProjection)"
} }
public class CapturedType( public class CapturedType(
@@ -83,6 +83,8 @@ public class CapturedType(
if (typeProjection.getProjectionKind() == variance) typeProjection.getType() else default if (typeProjection.getProjectionKind() == variance) typeProjection.getType() else default
override fun sameTypeConstructor(type: JetType) = delegateType.getConstructor() === type.getConstructor() override fun sameTypeConstructor(type: JetType) = delegateType.getConstructor() === type.getConstructor()
override fun toString() = "Captured($typeProjection)"
} }
public fun createCapturedType(typeProjection: TypeProjection): JetType = CapturedType(typeProjection) public fun createCapturedType(typeProjection: TypeProjection): JetType = CapturedType(typeProjection)