rename ReadClassDataTest
This commit is contained in:
+3
@@ -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
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <P, Q : P> funParamReferencesParam() = 1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <in P, Q : P> funParamReferencesParam() = 1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <A : java.lang.Number> uno() = 1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <A> tres() where A : java.lang.Number, A : java.lang.CharSequence = 1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <A : java.lang.CharSequence> dos() = 1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <A> cuatro() where A : java.lang.CharSequence, A : java.lang.Number = 1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <P> funParamVarargParam(a: Int, vararg b: P) = 1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <P, Q> funTwoTypeParams() = 1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <P, in Q> funTwoTypeParams() = 1
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
import java.util.List
|
||||
import java.lang.CharSequence
|
||||
|
||||
fun ff(p: List<CharSequence>) = 1
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
import java.util.List
|
||||
import java.lang.CharSequence
|
||||
|
||||
fun ff(p: List<CharSequence?>) = 1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun fff(a: java.lang.CharSequence?) = 1
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
import java.util.List
|
||||
import java.util.ArrayList
|
||||
import java.lang.CharSequence
|
||||
|
||||
fun ffgg(): List<CharSequence> = ArrayList()
|
||||
+7
@@ -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
|
||||
Reference in New Issue
Block a user