Implement tests map generator and refactor folder structure to spec tests linking

This commit is contained in:
victor.petukhov
2019-08-19 11:26:12 +03:00
parent 28da325a11
commit cf692fb257
217 changed files with 2827 additions and 1787 deletions
@@ -0,0 +1,5 @@
fun <T> checkSubtype(t: T) = t
class CheckType<T>
fun <E> CheckType<E>.check() {}
infix fun <T> T.checkType(f: CheckType<T>.() -> Unit) {}
@@ -12,8 +12,8 @@ class Class {
val prop_11: Int = 10
var prop_12: String = ""
val prop_13: Any? = ""
val prop_14: Comparable<*>? = ""
val prop_15: Iterable<*>? = ""
val prop_14: Comparable<*>? = null
val prop_15: Iterable<*>? = null
fun fun_1(): (Int) -> (Int) -> Int = {number: Int -> { number * 5 }}
fun fun_2(value_1: Int): Int = value_1 * 2
@@ -25,7 +25,7 @@ class Class {
operator fun get(i1: Int) = 10
operator fun set(i1: Int, el: Int) {}
operator fun invoke() {}
operator fun invoke(x) = { x: Any -> x }
operator fun invoke(x: Any) = { x: Any -> x }
operator fun invoke(x: Any, y: Any) {}
operator fun contains(a: Int) = a > 30
operator fun contains(a: Long) = a > 30L
@@ -90,29 +90,29 @@ class ClassLevel6: ClassLevel5() {
class Inv<T>(val x: T = null as T) {
val prop_1: Inv<T>? = null
val prop_2: T? = null
val prop_3: T = null
val prop_3: T = null as T
val prop_4 = 10
fun test() {}
fun get() = x
fun put(x: T) {}
fun getNullable(): T? = select(x, null)
fun getNullable(): T? = if (true) x else null
}
class In<in T>() {
fun put(x: T) {}
fun <K : T> getWithUpperBoundT(): K = x <!UNCHECKED_CAST!>as K<!>
fun <K : T> getWithUpperBoundT(x: T): K = x as K
}
class Out<out T>(val x: T = null as T) {
val prop_1: Inv<T>? = null
val prop_1: Inv<out T>? = null
val prop_2: T? = null
fun get() = x
}
open class ClassWithTwoTypeParameters<K, L> {
fun test1(): T? { return null }
fun test1(): L? { return null }
fun test2(): K? { return null }
}
@@ -19,10 +19,10 @@ fun <K> expandOutWithRemoveNullable(vararg x: Out<K?>): K = x[0] as K
fun <K> removeNullable(vararg x: K?): K = x as K
fun <T> T.funT() = 10
fun <T> T?.funNullableT = 10
fun <T> T?.funNullableT() = 10
fun Any.funAny() = 10
fun Any?.funNullableAny = 10
fun Any?.funNullableAny() = 10
fun funNothingQuest() = null
@@ -12,7 +12,7 @@ sealed class SealedClassSingle
data class SealedSingleChild1(val number: Int) : SealedClassSingle()
sealed class SealedClassSingleWithObject
object SealedSingleWithObjectChild1: Expr3() {}
object SealedSingleWithObjectChild1: SealedClassSingleWithObject() {}
sealed class SealedClassEmpty