rename ReadClassDataTest

This commit is contained in:
Stepan Koltsov
2012-01-17 19:32:18 +04:00
parent 0dd7387f6c
commit 49dbcaa728
84 changed files with 6 additions and 4 deletions
@@ -0,0 +1,3 @@
package test
class Ramification
@@ -0,0 +1,3 @@
package test
class Wine<in T>
@@ -0,0 +1,6 @@
package test
class Outer {
class Inner {
}
}
@@ -0,0 +1,3 @@
package test
class Juice<in T>
@@ -0,0 +1,3 @@
package test
class Beer<T>
@@ -0,0 +1,3 @@
package test
class ClassParamReferencesParam<A, B : A>
@@ -0,0 +1,3 @@
package test
class ClassParamReferencesParam<A, in B : A>
@@ -0,0 +1,3 @@
package test
class Clock<A : java.lang.Number>
@@ -0,0 +1,3 @@
package test
class Clock<A> where A : java.lang.Number, A : java.lang.CharSequence
@@ -0,0 +1,3 @@
package test
class Clock<A : java.lang.CharSequence>
@@ -0,0 +1,3 @@
package test
class Clock<A> where A : java.lang.CharSequence, A : java.lang.Number
@@ -0,0 +1,3 @@
package test
class ClassTwoParams<P, Q>
@@ -0,0 +1,3 @@
package test
class ClassTwoParams<out P, Q>
@@ -0,0 +1,3 @@
package test
trait Trtrtr
@@ -0,0 +1,5 @@
package test
class ClassParamUsedInFun<in T> {
fun f(t: T) = 1
}
@@ -0,0 +1,5 @@
package test
class ClassParamUsedInFun<T> {
fun f(t: T) = 1
}
@@ -0,0 +1,3 @@
package test
class ClassWithConstructor0()
@@ -0,0 +1,3 @@
package test
class ClassWithConstructor1(p: Int)
@@ -0,0 +1,3 @@
package test
fun <T> f() = 1
@@ -0,0 +1,3 @@
package test
fun <in T> f() = 1
@@ -0,0 +1,3 @@
package test
fun <out T> f() = 1
@@ -0,0 +1,3 @@
package test
fun <P> funParamParam(a: Int, b: P) = 1
@@ -0,0 +1,3 @@
package test
fun <P, Q : P> funParamReferencesParam() = 1
@@ -0,0 +1,3 @@
package test
fun <in P, Q : P> funParamReferencesParam() = 1
@@ -0,0 +1,3 @@
package test
fun <A : java.lang.Number> uno() = 1
@@ -0,0 +1,3 @@
package test
fun <A> tres() where A : java.lang.Number, A : java.lang.CharSequence = 1
@@ -0,0 +1,3 @@
package test
fun <A : java.lang.CharSequence> dos() = 1
@@ -0,0 +1,3 @@
package test
fun <A> cuatro() where A : java.lang.CharSequence, A : java.lang.Number = 1
@@ -0,0 +1,3 @@
package test
fun <P> funParamVarargParam(a: Int, vararg b: P) = 1
@@ -0,0 +1,3 @@
package test
fun <P, Q> funTwoTypeParams() = 1
@@ -0,0 +1,3 @@
package test
fun <P, in Q> funTwoTypeParams() = 1
@@ -0,0 +1,6 @@
package test
import java.util.List
import java.lang.CharSequence
fun ff(p: List<CharSequence>) = 1
@@ -0,0 +1,6 @@
package test
import java.util.List
import java.lang.CharSequence
fun ff(p: List<CharSequence?>) = 1
@@ -0,0 +1,3 @@
package test
fun fff(a: java.lang.CharSequence?) = 1
@@ -0,0 +1,7 @@
package test
import java.util.List
import java.util.ArrayList
import java.lang.CharSequence
fun ffgg(): List<CharSequence> = ArrayList()
@@ -0,0 +1,7 @@
package test
import java.util.List
import java.util.ArrayList
import java.lang.CharSequence
fun ffgg(): List<CharSequence?> = ArrayList()
@@ -0,0 +1,5 @@
package test
class River {
fun song() = 1
}
@@ -0,0 +1,5 @@
package test
class ClassFunGetFoo {
fun getFoo() = 1
}
@@ -0,0 +1,6 @@
package test
class ClassFunGetFoo {
fun getFoo() = 1
fun setFoo(p: Int) {}
}
@@ -0,0 +1,5 @@
package test
class ClassFunGetFoo {
fun set(p: Int) { }
}
@@ -0,0 +1,3 @@
package test
fun Int.shuffle() = 1
@@ -0,0 +1,5 @@
package test
class ExtFunInClass {
fun Int.shuffle() = 1
}
@@ -0,0 +1,3 @@
package test
fun funDefaultArg(p: Int, q: Int = 17, r: Int = 18) = 19
@@ -0,0 +1,3 @@
package test
fun fff(a: java.lang.CharSequence) = 1
@@ -0,0 +1,3 @@
package test
fun varargCharSequence(a: Int, vararg b: java.lang.CharSequence) = 1
@@ -0,0 +1,3 @@
package test
fun varargInt(a: Int, vararg b: Int) = 1
@@ -0,0 +1,5 @@
package test
abstract class ModifierAbstract {
abstract fun abs(): Int
}
@@ -0,0 +1,5 @@
package test
open class ModifierOpen {
open fun abs() = 1
}
@@ -0,0 +1,3 @@
package test
fun f() = 1
@@ -0,0 +1,3 @@
package test
fun getFoo() = 1
@@ -0,0 +1,3 @@
package test
fun ff(): java.lang.CharSequence = throw Exception()
@@ -0,0 +1,3 @@
package test
fun ff(): java.lang.CharSequence? = null
@@ -0,0 +1,5 @@
package test
class ClassVal() {
val aa = 1
}
@@ -0,0 +1,5 @@
package test
abstract class ClassValAbstract {
abstract val a: Int
}
@@ -0,0 +1,5 @@
package test
class ClassVar() {
var aa = 1
}
@@ -0,0 +1,4 @@
package test
val <P> P.anotherJavaClass: java.lang.Class<P>
get() = throw Exception()
@@ -0,0 +1,6 @@
package test
class ExtPropInClass {
val Int.itIs: Int
get() = this
}
@@ -0,0 +1,4 @@
package test
val Int.itIs: Int
get() = this
@@ -0,0 +1,6 @@
package test
import java.lang.CharSequence
val Int.ggg: CharSequence
get() = throw Exception()
@@ -0,0 +1,6 @@
package test
import java.lang.CharSequence
val Int.ggg: CharSequence?
get() = throw Exception()
@@ -0,0 +1,6 @@
package test
class ExtValInClass {
val Int.asas: java.util.List<Int>?
get() = throw Exception()
}
@@ -0,0 +1,6 @@
package test
class ExtValInClass<T> {
val Int.asas: T
get() = throw Exception()
}
@@ -0,0 +1,6 @@
package test
class ExtValInClass<P> {
val Int.asas: P?
get() = throw Exception()
}
@@ -0,0 +1,6 @@
package test
class ExtValPIntInClass<P> {
val P.asas: Int
get() = throw Exception()
}
@@ -0,0 +1,5 @@
package test
var <P> P.anotherJavaClass: java.lang.Class<P>
get() = throw Exception()
set(p: java.lang.Class<P>) = throw Exception()
@@ -0,0 +1,7 @@
package test
class ExtPropInClass {
var Int.itIs: Int
get() = throw Exception()
set(p: Int) = throw Exception()
}
@@ -0,0 +1,5 @@
package test
var Int.ggg: Int
get() = throw Exception()
set(p) = throw Exception()
@@ -0,0 +1,7 @@
package test
class ExtValInClass<P> {
var Int.asas: P
get() = throw Exception()
set(p: P) = throw Exception()
}
@@ -0,0 +1,7 @@
package test
class ExtValInClass<P> {
var Int.asas: P?
get() = throw Exception()
set(p: P?) = throw Exception()
}
@@ -0,0 +1,7 @@
package test
import java.util.Map
var <P, Q> Map<P, Q>.asas: Int
get() = throw Exception()
set(i: Int) = throw Exception()
@@ -0,0 +1,7 @@
package test
class ExtValPIntInClass<P> {
var P.asas: Int
get() = throw Exception()
set(p: Int) = throw Exception()
}
@@ -0,0 +1,7 @@
package test
class ExtValPIntInClass<P> {
var P?.asas: Int
get() = throw Exception()
set(p: Int) = throw Exception()
}
@@ -0,0 +1,3 @@
package test
val nsVal = 1
@@ -0,0 +1,3 @@
package test
var nsVal = 1
@@ -0,0 +1,3 @@
package test
fun nothing(): Array<java.lang.CharSequence> = throw Exception()
@@ -0,0 +1,3 @@
package test
fun fff(): Array<Int> = throw Exception()
@@ -0,0 +1,3 @@
package test
fun fff(): Array<String> = throw Exception()
@@ -0,0 +1,3 @@
package test
fun fff(): Int = 1
@@ -0,0 +1,3 @@
package test
fun nothing(): IntArray = throw Exception()
@@ -0,0 +1,3 @@
package test
fun fff(): Int? = 1
@@ -0,0 +1,3 @@
package test
fun fff(): java.util.List<String> = throw Exception()
@@ -0,0 +1,3 @@
package test
fun fff(): String = ""
@@ -0,0 +1,3 @@
package test
fun fff(): String? = ""