8fca9f41eb
Modality might be null before the declaration itself is resolved to `STATUS` ^KT-52667 Fixed
20 lines
224 B
Kotlin
Vendored
20 lines
224 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// TODO: KT-50732
|
|
// ISSUE: KT-51007
|
|
|
|
// MODULE: lib
|
|
fun interface A {
|
|
suspend fun foo()
|
|
}
|
|
|
|
// MODULE: main(lib)
|
|
suspend fun bar() {}
|
|
|
|
fun takeA(a: A?) {}
|
|
|
|
fun test() {
|
|
takeA {
|
|
bar()
|
|
}
|
|
}
|