Files
kotlin-fork/compiler/testData/diagnostics/tests/multimodule/samWithSuspendFunctionFromAnotherModule.kt
T
Roman Golyshev 8fca9f41eb [FIR IDE] Correctly check declarations' modalities in SamResolver
Modality might be null before the declaration itself is resolved to
`STATUS`

^KT-52667 Fixed
2022-06-07 21:14:24 +00:00

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()
}
}