Files
kotlin-fork/analysis/analysis-api/testData/analysisSession/resolveCall/samConstructorCall.kt
T
Mark Punzalan d16454b9af FIR: Set resolve phase to BODY_RESOLVE for SAM constructor value
parameters.

This was causing exceptions with analysis API trying to resolve the
synthetic FirValueParameter because it could not find a KtDeclaration
for it. Using BODY_RESOLVE should be safe; the SAM constructor function
is also on BODY_RESOLVE and the type of the value parameter is known.
2021-10-04 19:38:43 +03:00

2 lines
54 B
Kotlin
Vendored

val c = <expr>Comparator {x: Int, y: Int -> 1}</expr>