Check compileJavaAgainstKotlin tests with .txt files

This commit is contained in:
Alexander Udalov
2015-05-29 19:16:29 +03:00
parent cab8f583a8
commit 7ba0dda29c
68 changed files with 1272 additions and 3 deletions
@@ -0,0 +1,27 @@
package test
internal interface A</*0*/ T> {
internal abstract fun foo(): T
}
internal open class B : test.A<kotlin.Byte> {
public constructor B()
internal open fun foo(): kotlin.Byte
}
internal abstract class C : test.A<kotlin.Byte> {
public constructor C()
internal abstract /*fake_override*/ fun foo(): kotlin.Byte
}
public/*package*/ open class ExtendsB : test.B {
public/*package*/ constructor ExtendsB()
internal open /*fake_override*/ fun foo(): kotlin.Byte
public/*package*/ open fun test(): kotlin.Unit
}
public/*package*/ open class ExtendsC : test.C {
public/*package*/ constructor ExtendsC()
public open fun foo(): kotlin.Byte!
public/*package*/ open fun test(): kotlin.Unit
}
@@ -0,0 +1,15 @@
package test
internal interface A</*0*/ T> {
internal abstract fun foo(): T
}
internal final class B : test.A<kotlin.Int> {
public constructor B()
internal final fun foo(): kotlin.Int
}
public/*package*/ open class Test {
public/*package*/ constructor Test()
public/*package*/ open fun test(): kotlin.Unit
}
@@ -0,0 +1,15 @@
package test
internal interface A</*0*/ T> {
internal abstract fun foo(): T
}
internal final class B : test.A<kotlin.Int> {
public constructor B()
internal open fun foo(): kotlin.Int
}
public/*package*/ open class Test {
public/*package*/ constructor Test()
public/*package*/ open fun test(): kotlin.Unit
}
@@ -0,0 +1,16 @@
package test
internal interface A {
internal abstract fun foo(): kotlin.Any
}
internal open class B : test.A {
public constructor B()
internal open fun foo(): kotlin.Int
}
public/*package*/ open class Test : test.B {
public/*package*/ constructor Test()
internal open /*fake_override*/ fun foo(): kotlin.Int
public/*package*/ open fun test(): kotlin.Unit
}
@@ -0,0 +1,16 @@
package test
internal interface A</*0*/ T> {
internal abstract fun foo(): T
}
internal open class B : test.A<kotlin.Int> {
public constructor B()
internal final fun foo(): kotlin.Int
}
public/*package*/ open class Test : test.B {
public/*package*/ constructor Test()
internal final /*fake_override*/ fun foo(): kotlin.Int
public/*package*/ open fun test(): kotlin.Unit
}
@@ -0,0 +1,27 @@
package test
internal interface A</*0*/ T : kotlin.Comparable<T>> {
internal abstract fun foo(): T
}
internal open class B : test.A<kotlin.Int> {
public constructor B()
internal open fun foo(): kotlin.Int
}
internal abstract class C : test.A<kotlin.Int> {
public constructor C()
internal abstract /*fake_override*/ fun foo(): kotlin.Int
}
public/*package*/ open class ExtendsB : test.B {
public/*package*/ constructor ExtendsB()
internal open /*fake_override*/ fun foo(): kotlin.Int
public/*package*/ open fun test(): kotlin.Unit
}
public/*package*/ open class ExtendsC : test.C {
public/*package*/ constructor ExtendsC()
public open fun foo(): kotlin.Int!
public/*package*/ open fun test(): kotlin.Unit
}
@@ -0,0 +1,27 @@
package test
internal interface A</*0*/ T : kotlin.Number> {
internal abstract fun foo(): T
}
internal open class B : test.A<kotlin.Int> {
public constructor B()
internal open fun foo(): kotlin.Int
}
internal abstract class C : test.A<kotlin.Int> {
public constructor C()
internal abstract /*fake_override*/ fun foo(): kotlin.Int
}
public/*package*/ open class ExtendsB : test.B {
public/*package*/ constructor ExtendsB()
internal open /*fake_override*/ fun foo(): kotlin.Int
public/*package*/ open fun test(): kotlin.Unit
}
public/*package*/ open class ExtendsC : test.C {
public/*package*/ constructor ExtendsC()
public open fun foo(): kotlin.Int!
public/*package*/ open fun test(): kotlin.Unit
}
@@ -0,0 +1,27 @@
package test
internal interface A</*0*/ T> {
internal abstract fun foo(): T
}
internal open class B : test.A<kotlin.Int> {
public constructor B()
internal open fun foo(): kotlin.Int
}
internal abstract class C : test.A<kotlin.Int> {
public constructor C()
internal abstract /*fake_override*/ fun foo(): kotlin.Int
}
public/*package*/ open class ExtendsB : test.B {
public/*package*/ constructor ExtendsB()
internal open /*fake_override*/ fun foo(): kotlin.Int
public/*package*/ open fun test(): kotlin.Unit
}
public/*package*/ open class ExtendsC : test.C {
public/*package*/ constructor ExtendsC()
public open fun foo(): kotlin.Int!
public/*package*/ open fun test(): kotlin.Unit
}
@@ -0,0 +1,25 @@
package test
internal interface A</*0*/ T> {
internal abstract fun foo(): T
}
internal interface B : test.A<kotlin.Int> {
internal abstract /*fake_override*/ fun foo(): kotlin.Int
}
internal abstract class C : test.B {
public constructor C()
internal abstract /*fake_override*/ fun foo(): kotlin.Int
}
internal open class D : test.C {
public constructor D()
internal open fun foo(): kotlin.Int
}
public/*package*/ open class ExtendsD : test.D {
public/*package*/ constructor ExtendsD()
internal open /*fake_override*/ fun foo(): kotlin.Int
public/*package*/ open fun test(): kotlin.Unit
}
@@ -0,0 +1,27 @@
package test
internal interface A</*0*/ T> {
internal abstract fun foo(): T
}
internal open class B : test.A<kotlin.Int?> {
public constructor B()
internal open fun foo(): kotlin.Int?
}
internal abstract class C : test.A<kotlin.Int?> {
public constructor C()
internal abstract /*fake_override*/ fun foo(): kotlin.Int?
}
public/*package*/ open class ExtendsB : test.B {
public/*package*/ constructor ExtendsB()
internal open /*fake_override*/ fun foo(): kotlin.Int?
public/*package*/ open fun test(): kotlin.Unit
}
public/*package*/ open class ExtendsC : test.C {
public/*package*/ constructor ExtendsC()
public open fun foo(): kotlin.Int!
public/*package*/ open fun test(): kotlin.Unit
}
@@ -0,0 +1,16 @@
package test
internal interface A</*0*/ T> {
internal abstract fun foo(): T
}
internal abstract class B : test.A<kotlin.Int> {
public constructor B()
internal abstract fun foo(): kotlin.Int
}
public/*package*/ open class ExtendsB : test.B {
public/*package*/ constructor ExtendsB()
public open fun foo(): kotlin.Int!
public/*package*/ open fun test(): kotlin.Unit
}