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.
This commit is contained in:
Mark Punzalan
2021-09-30 21:57:40 +00:00
committed by TeamCityServer
parent 32bf7f33a7
commit d16454b9af
6 changed files with 14 additions and 1 deletions
@@ -1,2 +1,2 @@
val c = java.util.<caret>Comparator {(x: Int, y: Int) -> 1}
val c = java.util.<caret>Comparator {x: Int, y: Int -> 1}