3db7df6898
It was supposed to check only function types... Also note that it's probably impossible to write a simpler test right now, because we have a massive problem that we ignore `FirTypeRef`s with `null` sources despite having a dedicated family of checkers for them specifically. This will be fixed separately as KT-65647. ^KT-65584 Fixed ^KT-65647
15 lines
396 B
Kotlin
Vendored
15 lines
396 B
Kotlin
Vendored
// ISSUE: KT-65584
|
|
|
|
fun <T> giveItName(it: T, block: (myName: T) -> Unit) = block(it)
|
|
|
|
fun <T> duplicateIt(it: T, block: (T, T) -> Unit) = block
|
|
|
|
class MyTriple<T, K, M>(val a: T, val b: K, val c: M)
|
|
|
|
fun test() {
|
|
giveItName(10) {
|
|
MyTriple(it, it, it).also { self -> }
|
|
(duplicateIt(it) { a, b -> }).also { <!DUPLICATE_PARAMETER_NAME_IN_FUNCTION_TYPE!>function<!> -> }
|
|
}
|
|
}
|