blob: 8cebef33f569e75f11e7155d790ce3e1172f81b9 [file]
// RUN_PIPELINE_TILL: BACKEND
// DIAGNOSTICS: -UNUSED_PARAMETER
@file:OptIn(ExperimentalVersionOverloading::class)
fun inTrailing(
x: String,
@IntroducedAt("1") y: Int = 1,
block: () -> String = { x }
) = "$x/$y/${block()}"
fun inArgument(
x: String,
@IntroducedAt("1") y: Int = 1,
@IntroducedAt("2") z: () -> Int = { y },
block: () -> String
) = "$x/$y/${z()}/${block()}"
/* GENERATED_FIR_TAGS: annotationUseSiteTargetFile, classReference, functionDeclaration, functionalType, lambdaLiteral,
stringLiteral */