| // 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 */ |