Test stubs for compiled Kotlin files

This commit is contained in:
Pavel V. Talanov
2014-11-02 17:04:31 +04:00
parent afc6ba5e16
commit 6362336208
45 changed files with 3008 additions and 26 deletions
@@ -0,0 +1,47 @@
package a
class InheritingClasses {
abstract class A(override val c: Int = 1) : C {
open fun of() = 3
abstract fun af(): Int
open val op = 4
abstract val ap: Int
}
open class B : A(2) {
override fun of() = 4
override fun af() = 5
override val op = 5
override val ap = 5
}
trait C {
val c: Int
}
trait D<T> : C {
override val c: Int
}
trait E
class G : B(), C, D<Int>, E
class InheritAny {
trait SomeTrait
trait SomeTrait2
class ImplicitAny
class ExplicitAny : Any()
class OnlyTrait : SomeTrait
class OnlyTraits : SomeTrait, SomeTrait2
class TraitWithExplicitAny : Any(), SomeTrait
class TraitsWithExplicitAny : SomeTrait2, Any(), SomeTrait
}
abstract class InheritFunctionType : ((Int, String) -> Int)
abstract class InheritExtensionFunctionType : (E.(Int, String) -> Int)
}