Files
kotlin-fork/compiler/testData/ir/irText/expressions/variableAsFunctionCallWithGenerics.kt
T
Sergej Jaskiewicz 5d3fe7547a [IR] Fix mangling generic properties from IR-based descriptors
For type parameters of generic properties,
`DeclarationDescriptor#getContainingDeclaration` must return
the property descriptor instead of the accessor function descriptor.

^KT-57436 Fixed
2023-05-24 09:58:39 +00:00

15 lines
260 B
Kotlin
Vendored

// FIR_IDENTICAL
// MUTE_SIGNATURE_COMPARISON_K2: JS_IR
// ^ KT-57818
val <T : CharSequence> T.gk: () -> T
get() = { -> this }
fun testGeneric1(x: String) = x.gk()
val <T> T.kt26531Val: () -> T
get() = fun () = this
fun kt26531() = 7.kt26531Val()