blob: 49b3f03c7f72d7790118b2035b2f79dc63991a75 [file]
// RUN_PIPELINE_TILL: FRONTEND
fun Any.test() {
val x: () -> Int = when (this) {
is String -> { { length } }
else -> { { 1 } }
}
<!UNRESOLVED_REFERENCE!>length<!>
}
/* GENERATED_FIR_TAGS: funWithExtensionReceiver, functionDeclaration, functionalType, integerLiteral, isExpression,
lambdaLiteral, localProperty, propertyDeclaration, smartcast, whenExpression, whenWithSubject */