blob: 37744dbe37037b1ad2b1ad08a86b4c826a489b1c [file]
// RUN_PIPELINE_TILL: CODEGEN
// DIAGNOSTICS: -UNUSED_PARAMETER
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 */