mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 15:53:49 +00:00
29 lines
591 B
Kotlin
Vendored
29 lines
591 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
// FILE: A.java
|
|
import kotlin.reflect.KClass;
|
|
|
|
public class A {
|
|
public static A getA() {
|
|
return null;
|
|
}
|
|
|
|
public static KClass<A> getKClass() {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
// types checked by txt file
|
|
|
|
// FILE: 1.kt
|
|
inline fun <reified X> test1() = X::class.java
|
|
inline fun <reified X : Any> test2() = X::class.java
|
|
inline fun <reified X : Any?> test3() = X::class.java
|
|
inline fun <reified X : Number> test4() = X::class.java
|
|
inline fun <reified X : Number?> test5() = X::class.java
|
|
|
|
fun test6() = A.getA()::class.java
|
|
fun test7() = A.getKClass().java
|
|
|