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:
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import java.io.Serializable
|
||||
|
||||
public open class AllBoundsInWhen {
|
||||
public open fun <T> foo() where T: Serializable {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class AllBoundsInWhen {
|
||||
/*primary*/ public constructor AllBoundsInWhen()
|
||||
public open fun </*0*/ T : java.io.Serializable> foo(): kotlin.Unit
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
public open class ArrayType {
|
||||
public open fun foo(): Array<String> {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class ArrayType {
|
||||
/*primary*/ public constructor ArrayType()
|
||||
public open fun foo(): kotlin.Array<kotlin.String>
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package test
|
||||
|
||||
public open class ConstructorWithNewTypeParams<T>(first : Any) {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
public open class ConstructorWithNewTypeParams</*0*/ T> {
|
||||
/*primary*/ public constructor ConstructorWithNewTypeParams</*0*/ T>(/*0*/ first: kotlin.Any)
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package test
|
||||
|
||||
public open class ConstructorWithParentTypeParams<T>(first : T) {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
public open class ConstructorWithParentTypeParams</*0*/ T> {
|
||||
/*primary*/ public constructor ConstructorWithParentTypeParams</*0*/ T>(/*0*/ first: T)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class ConstructorWithSeveralParams(integer: Int, intField : Int, collection : ArrayList<String>) {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
public open class ConstructorWithSeveralParams {
|
||||
/*primary*/ public constructor ConstructorWithSeveralParams(/*0*/ integer: kotlin.Int, /*1*/ intField: kotlin.Int, /*2*/ collection: java.util.ArrayList<kotlin.String>)
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package test
|
||||
|
||||
public open class ConstructorWithoutParams() {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
public open class ConstructorWithoutParams {
|
||||
/*primary*/ public constructor ConstructorWithoutParams()
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class CustomProjectionKind {
|
||||
public open fun foo() : MutableList<out Number> = throw UnsupportedOperationException()
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class CustomProjectionKind {
|
||||
/*primary*/ public constructor CustomProjectionKind()
|
||||
public open fun foo(): kotlin.MutableList<out kotlin.Number>
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class MethodWithFunctionTypes {
|
||||
public open fun foo(f : (String?) -> String) : (String.() -> String?)? {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class MethodWithFunctionTypes {
|
||||
/*primary*/ public constructor MethodWithFunctionTypes()
|
||||
public open fun foo(/*0*/ f: (kotlin.String?) -> kotlin.String): (kotlin.String.() -> kotlin.String?)?
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class MethodWithGenerics {
|
||||
public open fun foo(a : String, b : List<Map.Entry<String?, String>?>) : String = ""
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class MethodWithGenerics {
|
||||
/*primary*/ public constructor MethodWithGenerics()
|
||||
public open fun foo(/*0*/ a: kotlin.String, /*1*/ b: kotlin.List<kotlin.Map.Entry<kotlin.String?, kotlin.String>?>): kotlin.String
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class MethodWithMappedClasses {
|
||||
public open fun <T> copy(dest : MutableList<in T>, src : List<T>) {}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class MethodWithMappedClasses {
|
||||
/*primary*/ public constructor MethodWithMappedClasses()
|
||||
public open fun </*0*/ T> copy(/*0*/ dest: kotlin.MutableList<in T>, /*1*/ src: kotlin.List<T>): kotlin.Unit
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class MethodWithTypeParameters {
|
||||
public open fun <A, B : Runnable> foo(a : A, b : List<B>, c: MutableList<in String?>) where B : List<Cloneable> {
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class MethodWithTypeParameters {
|
||||
/*primary*/ public constructor MethodWithTypeParameters()
|
||||
public open fun </*0*/ A, /*1*/ B : java.lang.Runnable> foo(/*0*/ a: A, /*1*/ b: kotlin.List<B>, /*2*/ c: kotlin.MutableList<in kotlin.String?>): kotlin.Unit where B : kotlin.List<kotlin.Cloneable>
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class MethodWithVararg {
|
||||
public open fun foo(vararg s : String) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class MethodWithVararg {
|
||||
/*primary*/ public constructor MethodWithVararg()
|
||||
public open fun foo(/*0*/ vararg s: kotlin.String /*kotlin.Array<kotlin.String>*/): kotlin.Unit
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class PropertyArrayTypes<T>() {
|
||||
public var arrayOfArrays : Array<Array<String>> = null!!
|
||||
public var array : Array<String> = null!!
|
||||
public var genericArray : Array<T> = null!!
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package test
|
||||
|
||||
public open class PropertyArrayTypes</*0*/ T> {
|
||||
/*primary*/ public constructor PropertyArrayTypes</*0*/ T>()
|
||||
public final var array: kotlin.Array<kotlin.String>
|
||||
public final fun <get-array>(): kotlin.Array<kotlin.String>
|
||||
public final fun <set-array>(/*0*/ <set-?>: kotlin.Array<kotlin.String>): kotlin.Unit
|
||||
public final var arrayOfArrays: kotlin.Array<kotlin.Array<kotlin.String>>
|
||||
public final fun <get-arrayOfArrays>(): kotlin.Array<kotlin.Array<kotlin.String>>
|
||||
public final fun <set-arrayOfArrays>(/*0*/ <set-?>: kotlin.Array<kotlin.Array<kotlin.String>>): kotlin.Unit
|
||||
public final var genericArray: kotlin.Array<T>
|
||||
public final fun <get-genericArray>(): kotlin.Array<T>
|
||||
public final fun <set-genericArray>(/*0*/ <set-?>: kotlin.Array<T>): kotlin.Unit
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class PropertyComplexTypes<T>() {
|
||||
public var genericType : T = null!!
|
||||
public var listDefinedGeneric : ArrayList<String> = null!!
|
||||
public var listGeneric : ArrayList<T> = null!!
|
||||
public var listOfGenericList : ArrayList<ArrayList<T>> = null!!
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package test
|
||||
|
||||
public open class PropertyComplexTypes</*0*/ T> {
|
||||
/*primary*/ public constructor PropertyComplexTypes</*0*/ T>()
|
||||
public final var genericType: T
|
||||
public final fun <get-genericType>(): T
|
||||
public final fun <set-genericType>(/*0*/ <set-?>: T): kotlin.Unit
|
||||
public final var listDefinedGeneric: java.util.ArrayList<kotlin.String>
|
||||
public final fun <get-listDefinedGeneric>(): java.util.ArrayList<kotlin.String>
|
||||
public final fun <set-listDefinedGeneric>(/*0*/ <set-?>: java.util.ArrayList<kotlin.String>): kotlin.Unit
|
||||
public final var listGeneric: java.util.ArrayList<T>
|
||||
public final fun <get-listGeneric>(): java.util.ArrayList<T>
|
||||
public final fun <set-listGeneric>(/*0*/ <set-?>: java.util.ArrayList<T>): kotlin.Unit
|
||||
public final var listOfGenericList: java.util.ArrayList<java.util.ArrayList<T>>
|
||||
public final fun <get-listOfGenericList>(): java.util.ArrayList<java.util.ArrayList<T>>
|
||||
public final fun <set-listOfGenericList>(/*0*/ <set-?>: java.util.ArrayList<java.util.ArrayList<T>>): kotlin.Unit
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class PropertySimpleType {
|
||||
public var fieldOne : String = ""
|
||||
public var fieldTwo : String? = null
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
public open class PropertySimpleType {
|
||||
/*primary*/ public constructor PropertySimpleType()
|
||||
public final var fieldOne: kotlin.String
|
||||
public final fun <get-fieldOne>(): kotlin.String
|
||||
public final fun <set-fieldOne>(/*0*/ <set-?>: kotlin.String): kotlin.Unit
|
||||
public final var fieldTwo: kotlin.String?
|
||||
public final fun <get-fieldTwo>(): kotlin.String?
|
||||
public final fun <set-fieldTwo>(/*0*/ <set-?>: kotlin.String?): kotlin.Unit
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
public final class StarProjection {
|
||||
public final fun foo(): MyClass<*> = throw UnsupportedOperationException()
|
||||
|
||||
public trait MyClass<T: CharSequence?>
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
public final class StarProjection {
|
||||
/*primary*/ public constructor StarProjection()
|
||||
public final fun foo(): test.StarProjection.MyClass<out kotlin.CharSequence?>
|
||||
|
||||
public trait MyClass</*0*/ T : kotlin.CharSequence?> {
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class AddingNullability {
|
||||
public open fun foo() : Int {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class AddingNullability {
|
||||
/*primary*/ public constructor AddingNullability()
|
||||
public open fun foo(): kotlin.Int
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
public open class ConflictingProjectionKind {
|
||||
public open fun foo(p0: List<Number>?) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class ConflictingProjectionKind {
|
||||
/*primary*/ public constructor ConflictingProjectionKind()
|
||||
public open fun foo(/*0*/ p0: kotlin.List<kotlin.Number>?): kotlin.Unit
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class ExplicitFieldGettersAndSetters {
|
||||
public var foo : String? = ""
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
public open class ExplicitFieldGettersAndSetters {
|
||||
/*primary*/ public constructor ExplicitFieldGettersAndSetters()
|
||||
public final var foo: kotlin.String?
|
||||
public final fun <get-foo>(): kotlin.String?
|
||||
public final fun <set-foo>(/*0*/ <set-?>: kotlin.String?): kotlin.Unit
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class ExtraUpperBound {
|
||||
public open fun <A : Runnable?> foo() : String? {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class ExtraUpperBound {
|
||||
/*primary*/ public constructor ExtraUpperBound()
|
||||
public open fun </*0*/ A : java.lang.Runnable?> foo(): kotlin.String?
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class MissingUpperBound {
|
||||
public open fun <A : Runnable?> foo() : String? where A : Cloneable? {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class MissingUpperBound {
|
||||
/*primary*/ public constructor MissingUpperBound()
|
||||
public open fun </*0*/ A : java.lang.Runnable?> foo(): kotlin.String? where A : kotlin.Cloneable?
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class NoFieldTypeRef {
|
||||
public var foo : String? = ""
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
public open class NoFieldTypeRef {
|
||||
/*primary*/ public constructor NoFieldTypeRef()
|
||||
public final var foo: kotlin.String?
|
||||
public final fun <get-foo>(): kotlin.String?
|
||||
public final fun <set-foo>(/*0*/ <set-?>: kotlin.String?): kotlin.Unit
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class NotVarargReplacedWithVararg {
|
||||
public open fun foo(p0 : String?) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class NotVarargReplacedWithVararg {
|
||||
/*primary*/ public constructor NotVarargReplacedWithVararg()
|
||||
public open fun foo(/*0*/ p0: kotlin.String?): kotlin.Unit
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
public open class RedundantProjectionKind {
|
||||
public open fun foo(list: List<Number>) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class RedundantProjectionKind {
|
||||
/*primary*/ public constructor RedundantProjectionKind()
|
||||
public open fun foo(/*0*/ list: kotlin.List<kotlin.Number>): kotlin.Unit
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class ReturnTypeMissing {
|
||||
public open fun foo(p0 : String?) : Int {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class ReturnTypeMissing {
|
||||
/*primary*/ public constructor ReturnTypeMissing()
|
||||
public open fun foo(/*0*/ p0: kotlin.String?): kotlin.Int
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class SyntaxError {
|
||||
public open fun foo() : Int? {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class SyntaxError {
|
||||
/*primary*/ public constructor SyntaxError()
|
||||
public open fun foo(): kotlin.Int?
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class SyntaxErrorInFieldAnnotation {
|
||||
public var foo : String? = ""
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
public open class SyntaxErrorInFieldAnnotation {
|
||||
/*primary*/ public constructor SyntaxErrorInFieldAnnotation()
|
||||
public final var foo: kotlin.String?
|
||||
public final fun <get-foo>(): kotlin.String?
|
||||
public final fun <set-foo>(/*0*/ <set-?>: kotlin.String?): kotlin.Unit
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class VarargReplacedWithNotVararg {
|
||||
public open fun foo(vararg p0 : String?) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class VarargReplacedWithNotVararg {
|
||||
/*primary*/ public constructor VarargReplacedWithNotVararg()
|
||||
public open fun foo(/*0*/ vararg p0: kotlin.String? /*kotlin.Array<kotlin.String?>*/): kotlin.Unit
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongFieldInitializer {
|
||||
public var foo : String? = ""
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
public open class WrongFieldInitializer {
|
||||
/*primary*/ public constructor WrongFieldInitializer()
|
||||
public final var foo: kotlin.String?
|
||||
public final fun <get-foo>(): kotlin.String?
|
||||
public final fun <set-foo>(/*0*/ <set-?>: kotlin.String?): kotlin.Unit
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// ALLOW_AST_ACCESS
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongFieldMutability {
|
||||
public var fooNotFinal : String? = ""
|
||||
public val fooFinal : String? = "Test"
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
public open class WrongFieldMutability {
|
||||
/*primary*/ public constructor WrongFieldMutability()
|
||||
public final val fooFinal: kotlin.String? = "Test"
|
||||
public final fun <get-fooFinal>(): kotlin.String?
|
||||
public final var fooNotFinal: kotlin.String?
|
||||
public final fun <get-fooNotFinal>(): kotlin.String?
|
||||
public final fun <set-fooNotFinal>(/*0*/ <set-?>: kotlin.String?): kotlin.Unit
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongFieldName {
|
||||
public var foo : String? = ""
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
public open class WrongFieldName {
|
||||
/*primary*/ public constructor WrongFieldName()
|
||||
public final var foo: kotlin.String?
|
||||
public final fun <get-foo>(): kotlin.String?
|
||||
public final fun <set-foo>(/*0*/ <set-?>: kotlin.String?): kotlin.Unit
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongMethodName {
|
||||
public open fun foo() : String? = ""
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class WrongMethodName {
|
||||
/*primary*/ public constructor WrongMethodName()
|
||||
public open fun foo(): kotlin.String?
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongProjectionKind {
|
||||
public open fun copy(p0 : Array<out Number>?, p1 : Array<out Number>?) : MutableList<Number>? {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class WrongProjectionKind {
|
||||
/*primary*/ public constructor WrongProjectionKind()
|
||||
public open fun copy(/*0*/ p0: kotlin.Array<out kotlin.Number>?, /*1*/ p1: kotlin.Array<out kotlin.Number>?): kotlin.MutableList<kotlin.Number>?
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongReturnTypeStructure {
|
||||
public open fun foo(p0 : String?, p1 : List<Map.Entry<String, String>>?) : String? = ""
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class WrongReturnTypeStructure {
|
||||
/*primary*/ public constructor WrongReturnTypeStructure()
|
||||
public open fun foo(/*0*/ p0: kotlin.String?, /*1*/ p1: kotlin.List<kotlin.Map.Entry<kotlin.String, kotlin.String>>?): kotlin.String?
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongTypeName1 {
|
||||
public open fun foo(p0 : String?) : String? = ""
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class WrongTypeName1 {
|
||||
/*primary*/ public constructor WrongTypeName1()
|
||||
public open fun foo(/*0*/ p0: kotlin.String?): kotlin.String?
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongTypeName2 {
|
||||
public open fun foo(p0 : String?) : String? = ""
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class WrongTypeName2 {
|
||||
/*primary*/ public constructor WrongTypeName2()
|
||||
public open fun foo(/*0*/ p0: kotlin.String?): kotlin.String?
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongTypeName3 {
|
||||
public open fun foo(p0 : String?) : String? = ""
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class WrongTypeName3 {
|
||||
/*primary*/ public constructor WrongTypeName3()
|
||||
public open fun foo(/*0*/ p0: kotlin.String?): kotlin.String?
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongTypeParameterBoundStructure1 {
|
||||
public open fun <A, B : Runnable?> foo(p0 : A?, p1 : List<B>?) where B : List<Cloneable>? {
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class WrongTypeParameterBoundStructure1 {
|
||||
/*primary*/ public constructor WrongTypeParameterBoundStructure1()
|
||||
public open fun </*0*/ A, /*1*/ B : java.lang.Runnable?> foo(/*0*/ p0: A?, /*1*/ p1: kotlin.List<B>?): kotlin.Unit where B : kotlin.List<kotlin.Cloneable>?
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongTypeParameterBoundStructure2 {
|
||||
public open fun <A, B : Runnable?> foo(p0 : A?, p1 : List<B>?) where B : List<Cloneable>? {
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class WrongTypeParameterBoundStructure2 {
|
||||
/*primary*/ public constructor WrongTypeParameterBoundStructure2()
|
||||
public open fun </*0*/ A, /*1*/ B : java.lang.Runnable?> foo(/*0*/ p0: A?, /*1*/ p1: kotlin.List<B>?): kotlin.Unit where B : kotlin.List<kotlin.Cloneable>?
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongTypeParametersCount {
|
||||
public open fun <A, B> foo(p0 : A?, p1 : List<B>?) {
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class WrongTypeParametersCount {
|
||||
/*primary*/ public constructor WrongTypeParametersCount()
|
||||
public open fun </*0*/ A, /*1*/ B> foo(/*0*/ p0: A?, /*1*/ p1: kotlin.List<B>?): kotlin.Unit
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongValueParameterStructure1 {
|
||||
public open fun foo(p0 : String?, p1 : List<Map.Entry<String, String>>?) : String? = ""
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class WrongValueParameterStructure1 {
|
||||
/*primary*/ public constructor WrongValueParameterStructure1()
|
||||
public open fun foo(/*0*/ p0: kotlin.String?, /*1*/ p1: kotlin.List<kotlin.Map.Entry<kotlin.String, kotlin.String>>?): kotlin.String?
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongValueParameterStructure2 {
|
||||
public open fun foo(p0 : String?, p1 : List<Map.Entry<String, String>>?) : String? = ""
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class WrongValueParameterStructure2 {
|
||||
/*primary*/ public constructor WrongValueParameterStructure2()
|
||||
public open fun foo(/*0*/ p0: kotlin.String?, /*1*/ p1: kotlin.List<kotlin.Map.Entry<kotlin.String, kotlin.String>>?): kotlin.String?
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class WrongValueParametersCount {
|
||||
public open fun foo() : Int? {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class WrongValueParametersCount {
|
||||
/*primary*/ public constructor WrongValueParametersCount()
|
||||
public open fun foo(): kotlin.Int?
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package test
|
||||
|
||||
public trait PropagateTypeArgumentNullable {
|
||||
|
||||
public trait Super {
|
||||
public fun outS(p: List<String?>)
|
||||
|
||||
public fun invOutS(p : MutableList<List<String?>>)
|
||||
|
||||
public fun outOutS(p : List<List<String?>>)
|
||||
|
||||
public fun outR() : List<String?>
|
||||
public fun invR() : MutableList<String?>
|
||||
public fun invOutR() : MutableList<List<String?>>
|
||||
|
||||
}
|
||||
|
||||
public trait Sub: Super {
|
||||
override fun outS(p: List<String?>)
|
||||
|
||||
override fun invOutS(p : MutableList<List<String?>>)
|
||||
|
||||
override fun outOutS(p : List<List<String?>>)
|
||||
|
||||
override fun outR() : List<String?>
|
||||
override fun invR() : MutableList<String?>
|
||||
override fun invOutR() : MutableList<List<String?>>
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package test
|
||||
|
||||
public trait PropagateTypeArgumentNullable {
|
||||
|
||||
public trait Sub : test.PropagateTypeArgumentNullable.Super {
|
||||
public abstract override /*1*/ fun invOutR(): kotlin.MutableList<kotlin.List<kotlin.String?>>
|
||||
public abstract override /*1*/ fun invOutS(/*0*/ p: kotlin.MutableList<kotlin.List<kotlin.String?>>): kotlin.Unit
|
||||
public abstract override /*1*/ fun invR(): kotlin.MutableList<kotlin.String?>
|
||||
public abstract override /*1*/ fun outOutS(/*0*/ p: kotlin.List<kotlin.List<kotlin.String?>>): kotlin.Unit
|
||||
public abstract override /*1*/ fun outR(): kotlin.List<kotlin.String?>
|
||||
public abstract override /*1*/ fun outS(/*0*/ p: kotlin.List<kotlin.String?>): kotlin.Unit
|
||||
}
|
||||
|
||||
public trait Super {
|
||||
public abstract fun invOutR(): kotlin.MutableList<kotlin.List<kotlin.String?>>
|
||||
public abstract fun invOutS(/*0*/ p: kotlin.MutableList<kotlin.List<kotlin.String?>>): kotlin.Unit
|
||||
public abstract fun invR(): kotlin.MutableList<kotlin.String?>
|
||||
public abstract fun outOutS(/*0*/ p: kotlin.List<kotlin.List<kotlin.String?>>): kotlin.Unit
|
||||
public abstract fun outR(): kotlin.List<kotlin.String?>
|
||||
public abstract fun outS(/*0*/ p: kotlin.List<kotlin.String?>): kotlin.Unit
|
||||
}
|
||||
}
|
||||
+14
@@ -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>)
|
||||
}
|
||||
}
|
||||
+14
@@ -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
|
||||
}
|
||||
}
|
||||
+14
@@ -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>)
|
||||
}
|
||||
}
|
||||
+14
@@ -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
|
||||
}
|
||||
}
|
||||
+18
@@ -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)
|
||||
}
|
||||
}
|
||||
+19
@@ -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
|
||||
}
|
||||
}
|
||||
+17
@@ -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)
|
||||
}
|
||||
}
|
||||
+19
@@ -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
|
||||
}
|
||||
}
|
||||
+14
@@ -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>)
|
||||
}
|
||||
}
|
||||
+14
@@ -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
|
||||
}
|
||||
}
|
||||
+14
@@ -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>?)
|
||||
}
|
||||
}
|
||||
+14
@@ -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
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user