[FIR IDE] Correctly check declarations' modalities in SamResolver

Modality might be null before the declaration itself is resolved to
`STATUS`

^KT-52667 Fixed
This commit is contained in:
Roman Golyshev
2022-06-07 16:34:44 +04:00
committed by teamcity
parent 3abcd84802
commit 8fca9f41eb
5 changed files with 254 additions and 7 deletions
@@ -0,0 +1,13 @@
package foo
class Arg
fun interface Foo {
fun foo(a: Arg): Arg
}
fun testMe(f: Foo) {}
fun resolveMe() {
testMe { b -> b }
}