K2/MPP: add test confirming proper work of KT-62024
#KT-62024 Obsolete
This commit is contained in:
committed by
Space Team
parent
50bfd19959
commit
c2d031254c
+21
@@ -0,0 +1,21 @@
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-62024
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
expect class Foo {
|
||||
fun foo(): Int
|
||||
}
|
||||
|
||||
// MODULE: m2-jvm()()(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
interface I {
|
||||
fun foo() = 1
|
||||
}
|
||||
|
||||
actual class Foo(i: I) : I by i
|
||||
|
||||
fun test(foo: Foo) {
|
||||
foo.foo()
|
||||
}
|
||||
Reference in New Issue
Block a user