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:
@@ -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;
|
||||
|
||||
+1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user