Make KTypeProjection's constructor public

To make it easier to create a KTypeProjection instance given a KVariance
instance (otherwise you currently need to do a "when" on it). Also it's exposed
via automatically generated "copy" anyway
This commit is contained in:
Alexander Udalov
2017-01-26 20:00:54 +03:00
parent e5680565b3
commit eb61a1c5a8
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ public interface KType {
* for more information.
*/
@SinceKotlin("1.1")
public data class KTypeProjection private constructor(
public data class KTypeProjection constructor(
/**
* The use-site variance specified in the projection, or `null` if this is a star projection.
*/
@@ -1205,6 +1205,7 @@ public abstract interface class kotlin/reflect/KTypeParameter : kotlin/reflect/K
public final class kotlin/reflect/KTypeProjection {
public static final field Companion Lkotlin/reflect/KTypeProjection$Companion;
public fun <init> (Lkotlin/reflect/KVariance;Lkotlin/reflect/KType;)V
public final fun component1 ()Lkotlin/reflect/KVariance;
public final fun component2 ()Lkotlin/reflect/KType;
public final fun copy (Lkotlin/reflect/KVariance;Lkotlin/reflect/KType;)Lkotlin/reflect/KTypeProjection;
@@ -3334,6 +3334,7 @@ public abstract interface class kotlin/reflect/KTypeParameter : kotlin/reflect/K
public final class kotlin/reflect/KTypeProjection {
public static final field Companion Lkotlin/reflect/KTypeProjection$Companion;
public fun <init> (Lkotlin/reflect/KVariance;Lkotlin/reflect/KType;)V
public final fun component1 ()Lkotlin/reflect/KVariance;
public final fun component2 ()Lkotlin/reflect/KType;
public final fun copy (Lkotlin/reflect/KVariance;Lkotlin/reflect/KType;)Lkotlin/reflect/KTypeProjection;