Minor. Refine type parameters' naming in diagnostic test data
Using different names is more convenient for debugging
This commit is contained in:
committed by
Space Team
parent
d9f6e33cf7
commit
f831e11b4a
+5
-4
@@ -1,4 +1,5 @@
|
|||||||
// FIR_IDENTICAL
|
// FIR_IDENTICAL
|
||||||
|
// ISSUE: KT-38667
|
||||||
// !OPT_IN: kotlin.RequiresOptIn
|
// !OPT_IN: kotlin.RequiresOptIn
|
||||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -UNUSED_EXPRESSION
|
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -UNUSED_EXPRESSION
|
||||||
|
|
||||||
@@ -12,11 +13,11 @@ abstract class AnimationBuilder<T>
|
|||||||
abstract class DurationBasedAnimationBuilder<T> : AnimationBuilder<T>()
|
abstract class DurationBasedAnimationBuilder<T> : AnimationBuilder<T>()
|
||||||
class TweenBuilder<T> : DurationBasedAnimationBuilder<T>()
|
class TweenBuilder<T> : DurationBasedAnimationBuilder<T>()
|
||||||
class TransitionSpec<S> {
|
class TransitionSpec<S> {
|
||||||
fun <T> tween(init: TweenBuilder<T>.() -> Unit): DurationBasedAnimationBuilder<T> = TweenBuilder<T>().apply(init)
|
fun <E> tween(init: TweenBuilder<E>.() -> Unit): DurationBasedAnimationBuilder<E> = TweenBuilder<E>().apply(init)
|
||||||
infix fun <T, V : AnimationVector> PropKey<T, V>.using(builder: AnimationBuilder<T>) {}
|
infix fun <F, V : AnimationVector> PropKey<F, V>.using(builder: AnimationBuilder<F>) {}
|
||||||
}
|
}
|
||||||
class TransitionDefinition<T> {
|
class TransitionDefinition<X> {
|
||||||
fun transition(fromState: T? = null, toState: T? = null, init: TransitionSpec<T>.() -> Unit) {}
|
fun transition(fromState: X? = null, toState: X? = null, init: TransitionSpec<X>.() -> Unit) {}
|
||||||
}
|
}
|
||||||
@OptIn(ExperimentalTypeInference::class)
|
@OptIn(ExperimentalTypeInference::class)
|
||||||
fun <T> transitionDefinition(init: TransitionDefinition<T>.() -> Unit) = TransitionDefinition<T>().apply(init)
|
fun <T> transitionDefinition(init: TransitionDefinition<T>.() -> Unit) = TransitionDefinition<T>().apply(init)
|
||||||
|
|||||||
+5
-5
@@ -44,12 +44,12 @@ public interface PropKey</*0*/ T, /*1*/ V : AnimationVector> {
|
|||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class TransitionDefinition</*0*/ T> {
|
public final class TransitionDefinition</*0*/ X> {
|
||||||
public constructor TransitionDefinition</*0*/ T>()
|
public constructor TransitionDefinition</*0*/ X>()
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
public final fun transition(/*0*/ fromState: T? = ..., /*1*/ toState: T? = ..., /*2*/ init: TransitionSpec<T>.() -> kotlin.Unit): kotlin.Unit
|
public final fun transition(/*0*/ fromState: X? = ..., /*1*/ toState: X? = ..., /*2*/ init: TransitionSpec<X>.() -> kotlin.Unit): kotlin.Unit
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class TransitionSpec</*0*/ S> {
|
public final class TransitionSpec</*0*/ S> {
|
||||||
@@ -57,8 +57,8 @@ public final class TransitionSpec</*0*/ S> {
|
|||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
public final fun </*0*/ T> tween(/*0*/ init: TweenBuilder<T>.() -> kotlin.Unit): DurationBasedAnimationBuilder<T>
|
public final fun </*0*/ E> tween(/*0*/ init: TweenBuilder<E>.() -> kotlin.Unit): DurationBasedAnimationBuilder<E>
|
||||||
public final infix fun </*0*/ T, /*1*/ V : AnimationVector> PropKey<T, V>.using(/*0*/ builder: AnimationBuilder<T>): kotlin.Unit
|
public final infix fun </*0*/ F, /*1*/ V : AnimationVector> PropKey<F, V>.using(/*0*/ builder: AnimationBuilder<F>): kotlin.Unit
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class TweenBuilder</*0*/ T> : DurationBasedAnimationBuilder<T> {
|
public final class TweenBuilder</*0*/ T> : DurationBasedAnimationBuilder<T> {
|
||||||
|
|||||||
Reference in New Issue
Block a user