Files
kotlin/compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithPropagation.kt
Andrey Breslav 1933e30905 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
2014-08-21 12:22:22 +04:00

25 lines
820 B
Kotlin

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 {}
}
}