blob: dc3ddffda50c8e4ee8613cfae8cc82bd2213c333 [file]
// RUN_PIPELINE_TILL: CODEGEN
// 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 { function -> }
}
}
/* GENERATED_FIR_TAGS: classDeclaration, functionDeclaration, functionalType, integerLiteral, lambdaLiteral,
nullableType, primaryConstructor, propertyDeclaration, typeParameter */