[Test] Add test for KT-41952

^KT-41952 Obsolete
This commit is contained in:
Dmitriy Novozhilov
2023-01-24 11:20:35 +02:00
committed by Space Team
parent 4c96495eef
commit a1a9a55e1a
6 changed files with 68 additions and 0 deletions
@@ -0,0 +1,23 @@
// FIR_IDENTICAL
// ISSUE: KT-41952
import kotlin.reflect.KClass
import kotlin.reflect.KProperty
class Issue {
val strings by bidir_collection(String::class) {
takeIssue(it) // Issue? instead of Issue
}
}
fun takeIssue(issue: Issue) {}
fun <Self : Any, Target : Any> Self.bidir_collection(targetType: KClass<out Target>, f: (Self) -> Unit): Delegate<Self, Collection<Target>> = null!!
class Delegate<R, T> {
operator fun getValue(thisRef: R, property: KProperty<*>): T {
return null!!
}
operator fun setValue(thisRef: R, property: KProperty<*>, value: T) {}
}
@@ -0,0 +1,21 @@
package
public fun takeIssue(/*0*/ issue: Issue): kotlin.Unit
public fun </*0*/ Self : kotlin.Any, /*1*/ Target : kotlin.Any> Self.bidir_collection(/*0*/ targetType: kotlin.reflect.KClass<out Target>, /*1*/ f: (Self) -> kotlin.Unit): Delegate<Self, kotlin.collections.Collection<Target>>
public final class Delegate</*0*/ R, /*1*/ T> {
public constructor Delegate</*0*/ R, /*1*/ T>()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public final operator fun getValue(/*0*/ thisRef: R, /*1*/ property: kotlin.reflect.KProperty<*>): T
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public final operator fun setValue(/*0*/ thisRef: R, /*1*/ property: kotlin.reflect.KProperty<*>, /*2*/ value: T): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
public final class Issue {
public constructor Issue()
public final val strings: kotlin.collections.Collection<kotlin.String>
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 toString(): kotlin.String
}