Test data split between compiledJava tests and compiledKotlin tests

Basically, this commit splits test data from the from java-txt-kt to two pairs java-txt and kt-txt.
This commit leads to some duplication in test data.
This is temporary: in the platform types branch the test data for LoadJava tests will be changed dramatically, so duplication will go away
This commit is contained in:
Andrey Breslav
2014-08-15 17:07:35 +04:00
parent 1533c0e9f3
commit 1933e30905
711 changed files with 6824 additions and 4231 deletions
@@ -0,0 +1,14 @@
package test
public trait ChangeProjectionKind1 {
public trait Super {
public fun foo(p: MutableList<in String>)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p: MutableList<in String>)
}
}
@@ -0,0 +1,14 @@
package test
public trait ChangeProjectionKind1 {
public trait Sub : test.ChangeProjectionKind1.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p: kotlin.MutableList<in kotlin.String>): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p: kotlin.MutableList<in kotlin.String>): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait ChangeProjectionKind2 {
public trait Super {
public fun foo(p: MutableList<String>)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p: MutableList<String>)
}
}
@@ -0,0 +1,14 @@
package test
public trait ChangeProjectionKind2 {
public trait Sub : test.ChangeProjectionKind2.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p: kotlin.MutableList<kotlin.String>): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p: kotlin.MutableList<kotlin.String>): kotlin.Unit
}
}
@@ -0,0 +1,18 @@
package test
public trait DeeplySubstitutedClassParameter {
public trait Super<T> {
public fun foo(t: T)
public fun dummy() // to avoid loading as SAM interface
}
public trait Middle<E>: Super<E> {
override fun foo(t: E)
}
public trait Sub: Middle<String> {
override fun foo(t: String)
}
}
@@ -0,0 +1,19 @@
package test
public trait DeeplySubstitutedClassParameter {
public trait Middle</*0*/ E> : test.DeeplySubstitutedClassParameter.Super<E> {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ t: E): kotlin.Unit
}
public trait Sub : test.DeeplySubstitutedClassParameter.Middle<kotlin.String> {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ t: kotlin.String): kotlin.Unit
}
public trait Super</*0*/ T> {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ t: T): kotlin.Unit
}
}
@@ -0,0 +1,17 @@
package test
public trait DeeplySubstitutedClassParameter2 {
public trait Super<T> {
public fun foo(t: T)
public fun dummy() // to avoid loading as SAM interface
}
public trait Middle<E>: Super<E> {
}
public trait Sub: Middle<String> {
override fun foo(t: String)
}
}
@@ -0,0 +1,19 @@
package test
public trait DeeplySubstitutedClassParameter2 {
public trait Middle</*0*/ E> : test.DeeplySubstitutedClassParameter2.Super<E> {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ /*fake_override*/ fun foo(/*0*/ t: E): kotlin.Unit
}
public trait Sub : test.DeeplySubstitutedClassParameter2.Middle<kotlin.String> {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ t: kotlin.String): kotlin.Unit
}
public trait Super</*0*/ T> {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ t: T): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritMutability {
public trait Super {
public fun foo(p: MutableList<String>)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p: MutableList<String>)
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritMutability {
public trait Sub : test.InheritMutability.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p: kotlin.MutableList<kotlin.String>): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p: kotlin.MutableList<kotlin.String>): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritNotVararg {
public trait Super {
public fun foo(p0: Array<out String>?)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p0: Array<out String>?)
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritNotVararg {
public trait Sub : test.InheritNotVararg.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p0: kotlin.Array<out kotlin.String>?): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p0: kotlin.Array<out kotlin.String>?): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritNotVarargInteger {
public trait Super {
public fun foo(p0: Array<out Int>?)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p0: Array<out Int>?)
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritNotVarargInteger {
public trait Sub : test.InheritNotVarargInteger.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p0: kotlin.Array<out kotlin.Int>?): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p0: kotlin.Array<out kotlin.Int>?): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritNotVarargNotNull {
public trait Super {
public fun foo(p: Array<out String>)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p: Array<out String>)
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritNotVarargNotNull {
public trait Sub : test.InheritNotVarargNotNull.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p: kotlin.Array<out kotlin.String>): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p: kotlin.Array<out kotlin.String>): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritNotVarargPrimitive {
public trait Super {
public fun foo(p0: IntArray?)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p0: IntArray?)
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritNotVarargPrimitive {
public trait Sub : test.InheritNotVarargPrimitive.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p0: kotlin.IntArray?): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p0: kotlin.IntArray?): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritNullability {
public trait Super {
public fun foo(p0: String)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p0: String)
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritNullability {
public trait Sub : test.InheritNullability.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p0: kotlin.String): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p0: kotlin.String): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritProjectionKind {
public trait Super {
public fun foo(p: MutableList<in String>)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p: MutableList<in String>)
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritProjectionKind {
public trait Sub : test.InheritProjectionKind.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p: kotlin.MutableList<in kotlin.String>): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p: kotlin.MutableList<in kotlin.String>): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritReadOnliness {
public trait Super {
public fun foo(p: List<String>)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p: List<String>)
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritReadOnliness {
public trait Sub : test.InheritReadOnliness.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p: kotlin.List<kotlin.String>): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p: kotlin.List<kotlin.String>): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritVararg {
public trait Super {
public fun foo(vararg p0: String?)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(vararg p0: String?)
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritVararg {
public trait Sub : test.InheritVararg.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ vararg p0: kotlin.String? /*kotlin.Array<kotlin.String?>*/): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ vararg p0: kotlin.String? /*kotlin.Array<kotlin.String?>*/): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritVarargInteger {
public trait Super {
public fun foo(vararg p0: Int?)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(vararg p0: Int?)
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritVarargInteger {
public trait Sub : test.InheritVarargInteger.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ vararg p0: kotlin.Int? /*kotlin.Array<kotlin.Int?>*/): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ vararg p0: kotlin.Int? /*kotlin.Array<kotlin.Int?>*/): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritVarargNotNull {
public trait Super {
public fun foo(vararg p: String)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(vararg p: String)
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritVarargNotNull {
public trait Sub : test.InheritVarargNotNull.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ vararg p: kotlin.String /*kotlin.Array<kotlin.String>*/): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ vararg p: kotlin.String /*kotlin.Array<kotlin.String>*/): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritVarargPrimitive {
public trait Super {
public fun foo(vararg p0: Int)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(vararg p0: Int)
}
}
@@ -0,0 +1,14 @@
package test
public trait InheritVarargPrimitive {
public trait Sub : test.InheritVarargPrimitive.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ vararg p0: kotlin.Int /*kotlin.IntArray*/): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ vararg p0: kotlin.Int /*kotlin.IntArray*/): kotlin.Unit
}
}
@@ -0,0 +1,20 @@
package test
// See SubclassFromGenericAndNot, as well
public trait Kt3302 {
public trait BSONObject {
public fun put(p0: String, p1: Any): Any?
public fun dummy() // to avoid loading as SAM interface
}
public trait LinkedHashMap<K, V> {
public fun put(key: K, value: V): V?
public fun dummy() // to avoid loading as SAM interface
}
public trait BasicBSONObject : LinkedHashMap<String, Any>, BSONObject {
override fun put(key: String, value: Any): Any?
}
}
@@ -0,0 +1,19 @@
package test
public trait Kt3302 {
public trait BSONObject {
public abstract fun dummy(): kotlin.Unit
public abstract fun put(/*0*/ p0: kotlin.String, /*1*/ p1: kotlin.Any): kotlin.Any?
}
public trait BasicBSONObject : test.Kt3302.LinkedHashMap<kotlin.String, kotlin.Any>, test.Kt3302.BSONObject {
public abstract override /*2*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*2*/ fun put(/*0*/ key: kotlin.String, /*1*/ value: kotlin.Any): kotlin.Any?
}
public trait LinkedHashMap</*0*/ K, /*1*/ V> {
public abstract fun dummy(): kotlin.Unit
public abstract fun put(/*0*/ key: K, /*1*/ value: V): V?
}
}
@@ -0,0 +1,14 @@
package test
public trait MutableToReadOnly {
public trait Super {
public fun foo(p: MutableList<String>)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p: MutableList<String>)
}
}
@@ -0,0 +1,14 @@
package test
public trait MutableToReadOnly {
public trait Sub : test.MutableToReadOnly.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p: kotlin.MutableList<kotlin.String>): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p: kotlin.MutableList<kotlin.String>): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait NotNullToNullable {
public trait Super {
public fun foo(p0: String)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p0: String)
}
}
@@ -0,0 +1,14 @@
package test
public trait NotNullToNullable {
public trait Sub : test.NotNullToNullable.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p0: kotlin.String): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p0: kotlin.String): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait NullableToNotNull {
public trait Super {
public fun foo(p0: String?)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p0: String?)
}
}
@@ -0,0 +1,14 @@
package test
public trait NullableToNotNull {
public trait Sub : test.NullableToNotNull.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p0: kotlin.String?): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p0: kotlin.String?): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait NullableToNotNullKotlinSignature {
public trait Super {
public fun foo(p: String?)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p: String?)
}
}
@@ -0,0 +1,14 @@
package test
public trait NullableToNotNullKotlinSignature {
public trait Sub : test.NullableToNotNullKotlinSignature.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p: kotlin.String?): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p: kotlin.String?): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait OverrideWithErasedParameter {
public trait Super<T> {
public fun foo(p0: T?)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub<T>: Super<T> {
override fun foo(p0: T?)
}
}
@@ -0,0 +1,14 @@
package test
public trait OverrideWithErasedParameter {
public trait Sub</*0*/ T> : test.OverrideWithErasedParameter.Super<T> {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p0: T?): kotlin.Unit
}
public trait Super</*0*/ T> {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p0: T?): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait ReadOnlyToMutable {
public trait Super {
public fun foo(p: List<String>)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super {
override fun foo(p: List<String>)
}
}
@@ -0,0 +1,14 @@
package test
public trait ReadOnlyToMutable {
public trait Sub : test.ReadOnlyToMutable.Super {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ p: kotlin.List<kotlin.String>): kotlin.Unit
}
public trait Super {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p: kotlin.List<kotlin.String>): kotlin.Unit
}
}
@@ -0,0 +1,21 @@
package test
// Extracted from KT-3302, see Kt3302 test, as well
public trait SubclassFromGenericAndNot {
public trait NonGeneric {
public fun foo(p0: String)
public fun dummy() // to avoid loading as SAM interface
}
public trait Generic<T> {
public fun foo(key: T)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub : NonGeneric, Generic<String> {
override fun foo(key: String)
}
}
@@ -0,0 +1,19 @@
package test
public trait SubclassFromGenericAndNot {
public trait Generic</*0*/ T> {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ key: T): kotlin.Unit
}
public trait NonGeneric {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ p0: kotlin.String): kotlin.Unit
}
public trait Sub : test.SubclassFromGenericAndNot.NonGeneric, test.SubclassFromGenericAndNot.Generic<kotlin.String> {
public abstract override /*2*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*2*/ fun foo(/*0*/ key: kotlin.String): kotlin.Unit
}
}
@@ -0,0 +1,14 @@
package test
public trait SubstitutedClassParameter {
public trait Super<T> {
public fun foo(t: T)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super<String> {
override fun foo(t: String)
}
}
@@ -0,0 +1,14 @@
package test
public trait SubstitutedClassParameter {
public trait Sub : test.SubstitutedClassParameter.Super<kotlin.String> {
public abstract override /*1*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*1*/ fun foo(/*0*/ t: kotlin.String): kotlin.Unit
}
public trait Super</*0*/ T> {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ t: T): kotlin.Unit
}
}
@@ -0,0 +1,20 @@
package test
public trait SubstitutedClassParameters {
public trait Super1<T> {
public fun foo(t: T)
public fun dummy() // to avoid loading as SAM interface
}
public trait Super2<E> {
public fun foo(t: E)
public fun dummy() // to avoid loading as SAM interface
}
public trait Sub: Super1<String>, Super2<String> {
override fun foo(t: String)
}
}
@@ -0,0 +1,19 @@
package test
public trait SubstitutedClassParameters {
public trait Sub : test.SubstitutedClassParameters.Super1<kotlin.String>, test.SubstitutedClassParameters.Super2<kotlin.String> {
public abstract override /*2*/ /*fake_override*/ fun dummy(): kotlin.Unit
public abstract override /*2*/ fun foo(/*0*/ t: kotlin.String): kotlin.Unit
}
public trait Super1</*0*/ T> {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ t: T): kotlin.Unit
}
public trait Super2</*0*/ E> {
public abstract fun dummy(): kotlin.Unit
public abstract fun foo(/*0*/ t: E): kotlin.Unit
}
}