Check compileJavaAgainstKotlin tests with .txt files
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package test
|
||||
|
||||
internal final class E1 : java.lang.Exception {
|
||||
public constructor E1()
|
||||
public final /*fake_override*/ fun getCause(): kotlin.Throwable?
|
||||
public final /*fake_override*/ fun getMessage(): kotlin.String?
|
||||
public final /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class E2 : java.lang.Exception {
|
||||
public constructor E2()
|
||||
public final /*fake_override*/ fun getCause(): kotlin.Throwable?
|
||||
public final /*fake_override*/ fun getMessage(): kotlin.String?
|
||||
public final /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
}
|
||||
|
||||
public/*package*/ open class JavaClass {
|
||||
public/*package*/ constructor JavaClass()
|
||||
public/*package*/ open fun testMethod(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class Test {
|
||||
public constructor Test()
|
||||
internal final fun none(): kotlin.Unit
|
||||
internal final fun one(): kotlin.Unit
|
||||
internal final fun two(): kotlin.Unit
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package test
|
||||
|
||||
internal final class E1 : java.lang.Exception {
|
||||
public constructor E1()
|
||||
public final /*fake_override*/ fun getCause(): kotlin.Throwable?
|
||||
public final /*fake_override*/ fun getMessage(): kotlin.String?
|
||||
public final /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class E2 : java.lang.Exception {
|
||||
public constructor E2()
|
||||
public final /*fake_override*/ fun getCause(): kotlin.Throwable?
|
||||
public final /*fake_override*/ fun getMessage(): kotlin.String?
|
||||
public final /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
}
|
||||
|
||||
public/*package*/ open class JavaClass {
|
||||
public/*package*/ constructor JavaClass()
|
||||
public/*package*/ open fun testMethod(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class None {
|
||||
public constructor None()
|
||||
}
|
||||
|
||||
internal final class One {
|
||||
public constructor One()
|
||||
}
|
||||
|
||||
internal final class OneWithParam {
|
||||
public constructor OneWithParam(/*0*/ kotlin.Int)
|
||||
}
|
||||
|
||||
internal final class Two {
|
||||
public constructor Two()
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package test
|
||||
|
||||
kotlin.jvm.jvmOverloads() internal fun one(/*0*/ kotlin.Int = ...): kotlin.Unit
|
||||
|
||||
internal final class E1 : java.lang.Exception {
|
||||
public constructor E1()
|
||||
public final /*fake_override*/ fun getCause(): kotlin.Throwable?
|
||||
public final /*fake_override*/ fun getMessage(): kotlin.String?
|
||||
public final /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
}
|
||||
|
||||
public/*package*/ open class JavaClass {
|
||||
public/*package*/ constructor JavaClass()
|
||||
public/*package*/ open fun testMethod(/*0*/ test.One!): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class One {
|
||||
public constructor One(/*0*/ kotlin.Int = ...)
|
||||
internal final fun one(/*0*/ kotlin.Int = ...): kotlin.Unit
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package test
|
||||
|
||||
internal final class E1 : java.lang.Exception {
|
||||
public constructor E1()
|
||||
public final /*fake_override*/ fun getCause(): kotlin.Throwable?
|
||||
public final /*fake_override*/ fun getMessage(): kotlin.String?
|
||||
public final /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class E2 : java.lang.Exception {
|
||||
public constructor E2()
|
||||
public final /*fake_override*/ fun getCause(): kotlin.Throwable?
|
||||
public final /*fake_override*/ fun getMessage(): kotlin.String?
|
||||
public final /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class Impl : test.Trait {
|
||||
public constructor Impl()
|
||||
internal open fun none(): kotlin.Unit
|
||||
internal open fun one(): kotlin.Unit
|
||||
internal open fun two(): kotlin.Unit
|
||||
}
|
||||
|
||||
public/*package*/ open class JavaClass {
|
||||
public/*package*/ constructor JavaClass()
|
||||
public/*package*/ open fun testMethod(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class Test : test.Trait {
|
||||
public constructor Test()
|
||||
internal open /*delegation*/ fun none(): kotlin.Unit
|
||||
internal open /*delegation*/ fun one(): kotlin.Unit
|
||||
internal open /*delegation*/ fun two(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal interface Trait {
|
||||
internal abstract fun none(): kotlin.Unit
|
||||
internal abstract fun one(): kotlin.Unit
|
||||
internal abstract fun two(): kotlin.Unit
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package test
|
||||
|
||||
internal interface Base</*0*/ T> {
|
||||
internal open fun one(/*0*/ T): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class Derived : test.Base<kotlin.String> {
|
||||
public constructor Derived()
|
||||
internal open /*fake_override*/ fun one(/*0*/ kotlin.String): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class E1 : java.lang.Exception {
|
||||
public constructor E1()
|
||||
public final /*fake_override*/ fun getCause(): kotlin.Throwable?
|
||||
public final /*fake_override*/ fun getMessage(): kotlin.String?
|
||||
public final /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
}
|
||||
|
||||
public/*package*/ open class JavaClass {
|
||||
public/*package*/ constructor JavaClass()
|
||||
|
||||
// Static members
|
||||
public open fun main(/*0*/ kotlin.Array<(out) kotlin.String!>!): kotlin.Unit
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package test
|
||||
|
||||
internal fun none(): kotlin.Unit
|
||||
internal fun one(): kotlin.Unit
|
||||
internal fun two(): kotlin.Unit
|
||||
|
||||
internal final class E1 : java.lang.Exception {
|
||||
public constructor E1()
|
||||
public final /*fake_override*/ fun getCause(): kotlin.Throwable?
|
||||
public final /*fake_override*/ fun getMessage(): kotlin.String?
|
||||
public final /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class E2 : java.lang.Exception {
|
||||
public constructor E2()
|
||||
public final /*fake_override*/ fun getCause(): kotlin.Throwable?
|
||||
public final /*fake_override*/ fun getMessage(): kotlin.String?
|
||||
public final /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
}
|
||||
|
||||
public/*package*/ open class JavaClass {
|
||||
public/*package*/ constructor JavaClass()
|
||||
public/*package*/ open fun testMethod(): kotlin.Unit
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package test
|
||||
|
||||
internal final class E1 : java.lang.Exception {
|
||||
public constructor E1()
|
||||
public final /*fake_override*/ fun getCause(): kotlin.Throwable?
|
||||
public final /*fake_override*/ fun getMessage(): kotlin.String?
|
||||
public final /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class E2 : java.lang.Exception {
|
||||
public constructor E2()
|
||||
public final /*fake_override*/ fun getCause(): kotlin.Throwable?
|
||||
public final /*fake_override*/ fun getMessage(): kotlin.String?
|
||||
public final /*fake_override*/ fun printStackTrace(): kotlin.Unit
|
||||
}
|
||||
|
||||
public/*package*/ open class JavaClass {
|
||||
public/*package*/ constructor JavaClass()
|
||||
public/*package*/ open fun testMethod(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal final class Test : test.Trait {
|
||||
public constructor Test()
|
||||
internal open /*fake_override*/ fun none(): kotlin.Unit
|
||||
internal open /*fake_override*/ fun one(): kotlin.Unit
|
||||
internal open /*fake_override*/ fun two(): kotlin.Unit
|
||||
}
|
||||
|
||||
internal interface Trait {
|
||||
internal open fun none(): kotlin.Unit
|
||||
internal open fun one(): kotlin.Unit
|
||||
internal open fun two(): kotlin.Unit
|
||||
}
|
||||
Reference in New Issue
Block a user