Files
kotlin-fork/analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/smartCastInAnonymousFunctionInWhenEntry.kt
T
aleksandrina-streltsova 9548486b55 [FIR] don't transform analyzed lambda
Inside `transformDeclarationContent` current tower data context is saved. Previously, stored context could be incomplete, because `dataFlowAnalyzer.enterFunction(function)` wasn't called in all cases.
^KTIJ-26419 Fixed
2023-08-03 07:54:24 +00:00

7 lines
108 B
Kotlin
Vendored

class A
fun Any.test(): () -> Int = when {
this is A -> fun() = <expr>e</expr>
else -> { { 0 } }
}