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:
@@ -0,0 +1,13 @@
|
||||
package test
|
||||
|
||||
import org.jetbrains.annotations.*
|
||||
|
||||
public trait LoadIterable<T> {
|
||||
Mutable
|
||||
public fun getIterable(): MutableIterable<T>?
|
||||
public fun setIterable([Mutable] p0: MutableIterable<T>?)
|
||||
|
||||
ReadOnly
|
||||
public fun getReadOnlyIterable(): Iterable<T>?
|
||||
public fun setReadOnlyIterable([ReadOnly] p0: Iterable<T>?)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
public trait LoadIterable</*0*/ T> {
|
||||
org.jetbrains.annotations.Mutable() public abstract fun getIterable(): kotlin.MutableIterable<T>?
|
||||
org.jetbrains.annotations.ReadOnly() public abstract fun getReadOnlyIterable(): kotlin.Iterable<T>?
|
||||
public abstract fun setIterable(/*0*/ org.jetbrains.annotations.Mutable() p0: kotlin.MutableIterable<T>?): kotlin.Unit
|
||||
public abstract fun setReadOnlyIterable(/*0*/ org.jetbrains.annotations.ReadOnly() p0: kotlin.Iterable<T>?): kotlin.Unit
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import org.jetbrains.annotations.*
|
||||
|
||||
public trait LoadIterableWithConflict<T> {
|
||||
[ReadOnly] [Mutable]
|
||||
public fun getIterable(): MutableIterable<T>?
|
||||
public fun setIterable([ReadOnly] [Mutable] p0: MutableIterable<T>?)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public trait LoadIterableWithConflict</*0*/ T> {
|
||||
org.jetbrains.annotations.ReadOnly() org.jetbrains.annotations.Mutable() public abstract fun getIterable(): kotlin.MutableIterable<T>?
|
||||
public abstract fun setIterable(/*0*/ org.jetbrains.annotations.ReadOnly() org.jetbrains.annotations.Mutable() p0: kotlin.MutableIterable<T>?): kotlin.Unit
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package test
|
||||
|
||||
import org.jetbrains.annotations.*
|
||||
|
||||
public trait LoadIterableWithNullability<T> {
|
||||
Mutable
|
||||
public fun getIterable(): MutableIterable<T>
|
||||
public fun setIterable([Mutable] p0: MutableIterable<T>)
|
||||
|
||||
ReadOnly
|
||||
public fun getReadOnlyIterable(): Iterable<T>
|
||||
public fun setReadOnlyIterable([ReadOnly] p0: Iterable<T>)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
public trait LoadIterableWithNullability</*0*/ T> {
|
||||
org.jetbrains.annotations.Mutable() public abstract fun getIterable(): kotlin.MutableIterable<T>
|
||||
org.jetbrains.annotations.ReadOnly() public abstract fun getReadOnlyIterable(): kotlin.Iterable<T>
|
||||
public abstract fun setIterable(/*0*/ org.jetbrains.annotations.Mutable() p0: kotlin.MutableIterable<T>): kotlin.Unit
|
||||
public abstract fun setReadOnlyIterable(/*0*/ org.jetbrains.annotations.ReadOnly() p0: kotlin.Iterable<T>): kotlin.Unit
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package test
|
||||
|
||||
import java.util.ArrayList
|
||||
import org.jetbrains.annotations.*
|
||||
|
||||
public trait LoadIterableWithPropagation {
|
||||
public trait LoadIterable<T> {
|
||||
Mutable
|
||||
public fun getIterable(): MutableIterable<T>?
|
||||
public fun setIterable([Mutable] p0: MutableIterable<T>?)
|
||||
|
||||
ReadOnly
|
||||
public fun getReadOnlyIterable(): Iterable<T>?
|
||||
public fun setReadOnlyIterable([ReadOnly] p0: Iterable<T>?)
|
||||
}
|
||||
|
||||
public open class LoadIterableImpl<T> : LoadIterable<T> {
|
||||
public override fun getIterable(): MutableIterable<T>? = ArrayList<T>()
|
||||
public override fun setIterable(p0: MutableIterable<T>?): Unit {}
|
||||
|
||||
public override fun getReadOnlyIterable(): Iterable<T>? = ArrayList<T>()
|
||||
public override fun setReadOnlyIterable(p0: Iterable<T>?): Unit {}
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
package test
|
||||
|
||||
public trait LoadIterableWithPropagation {
|
||||
|
||||
public trait LoadIterable</*0*/ T> {
|
||||
org.jetbrains.annotations.Mutable() public abstract fun getIterable(): kotlin.MutableIterable<T>?
|
||||
org.jetbrains.annotations.ReadOnly() public abstract fun getReadOnlyIterable(): kotlin.Iterable<T>?
|
||||
public abstract fun setIterable(/*0*/ org.jetbrains.annotations.Mutable() p0: kotlin.MutableIterable<T>?): kotlin.Unit
|
||||
public abstract fun setReadOnlyIterable(/*0*/ org.jetbrains.annotations.ReadOnly() p0: kotlin.Iterable<T>?): kotlin.Unit
|
||||
}
|
||||
|
||||
public open class LoadIterableImpl</*0*/ T> : test.LoadIterableWithPropagation.LoadIterable<T> {
|
||||
/*primary*/ public constructor LoadIterableImpl</*0*/ T>()
|
||||
public open override /*1*/ fun getIterable(): kotlin.MutableIterable<T>?
|
||||
public open override /*1*/ fun getReadOnlyIterable(): kotlin.Iterable<T>?
|
||||
public open override /*1*/ fun setIterable(/*0*/ p0: kotlin.MutableIterable<T>?): kotlin.Unit
|
||||
public open override /*1*/ fun setReadOnlyIterable(/*0*/ p0: kotlin.Iterable<T>?): kotlin.Unit
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user