Add tests on Kotlin against compiled Java+Kotlin
The original purpose was to create a test that parameter names are inherited on a K-J-K hierarchy when "K-J" is compiled to bytecode, but that's not possible right now because of KT-4509
This commit is contained in:
committed by
Andrey Breslav
parent
291741754b
commit
888a6c0c9b
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
trait B {
|
||||
fun foo(kotlinName: Int)
|
||||
}
|
||||
|
||||
class ZAB : A, B
|
||||
class ZBA : B, A
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package test
|
||||
|
||||
public /*synthesized*/ fun A(/*0*/ function: (kotlin.Int) -> kotlin.Unit): test.A
|
||||
|
||||
public trait A : java.lang.Object {
|
||||
public abstract fun foo(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
}
|
||||
|
||||
internal trait B {
|
||||
internal abstract fun foo(/*0*/ kotlinName: kotlin.Int): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class ZAB : test.A, test.B {
|
||||
public constructor ZAB()
|
||||
public abstract override /*2*/ /*fake_override*/ fun foo(/*0*/ kotlinName: kotlin.Int): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class ZBA : test.B, test.A {
|
||||
public constructor ZBA()
|
||||
public abstract override /*2*/ /*fake_override*/ fun foo(/*0*/ kotlinName: kotlin.Int): kotlin.Unit
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test;
|
||||
|
||||
public interface A {
|
||||
void foo(int javaName);
|
||||
}
|
||||
Reference in New Issue
Block a user