blob: 2e279edfa02499c909c35a767ca969acd34d29ca [file]
// RUN_PIPELINE_TILL: FRONTEND
// LANGUAGE: +ContextParameters
context(_: String)
fun foo() {}
fun acceptLambda(f: context(String) () -> Unit) {}
fun test() {
acceptLambda {
foo()
<!UNRESOLVED_REFERENCE!>length<!>
}
}
/* GENERATED_FIR_TAGS: functionDeclaration, functionDeclarationWithContext, functionalType, lambdaLiteral,
typeWithContext */