[FIR] Properly match expect fun interfaces with java interfaces

This commit is contained in:
Dmitriy Novozhilov
2023-06-06 18:41:06 +03:00
committed by Space Team
parent 1418a2bcb8
commit 29afd0dc97
4 changed files with 39 additions and 3 deletions
@@ -25,8 +25,19 @@ expect fun interface F5 {
fun run()
}<!>
expect fun interface F7 {
fun run()
}
// MODULE: m2-jvm()()(m1-common)
// FILE: NotSam.java
public interface NotSam {
void run();
void somehtingElse();
}
// FILE: main.kt
actual fun interface F1 {
actual fun run()
}
@@ -52,3 +63,5 @@ interface F6Typealias {
}
<!ACTUAL_WITHOUT_EXPECT!>actual typealias F6 = F6Typealias<!>
<!ACTUAL_WITHOUT_EXPECT!>actual typealias F7 = NotSam<!>
@@ -25,8 +25,19 @@ expect fun interface F6 {
fun run()
}
expect fun interface F7 {
fun run()
}
// MODULE: m2-jvm()()(m1-common)
// FILE: NotSam.java
public interface NotSam {
void run();
void somehtingElse();
}
// FILE: main.kt
actual fun interface F1 {
actual fun run()
}
@@ -51,4 +62,6 @@ interface F6Typealias {
fun run()
}
<!ACTUAL_WITHOUT_EXPECT!>actual<!> typealias F6 = F6Typealias
<!ACTUAL_WITHOUT_EXPECT!>actual<!> typealias F6 = F6Typealias
<!ACTUAL_WITHOUT_EXPECT!>actual<!> typealias F7 = NotSam