[FIR] Correct resolving of sam with suspend function from another module, ^KT-51007 Fixed
Ignore fir ide test probably because of KT-50732
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
// FIR_IDENTICAL
|
||||
// FIR_IDE_IGNORE
|
||||
// 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()
|
||||
}
|
||||
}
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// -- Module: <lib> --
|
||||
package
|
||||
|
||||
public fun interface A {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract suspend fun foo(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
// -- Module: <main> --
|
||||
package
|
||||
|
||||
public suspend fun bar(): kotlin.Unit
|
||||
public fun takeA(/*0*/ a: A?): kotlin.Unit
|
||||
public fun test(): kotlin.Unit
|
||||
Reference in New Issue
Block a user