deprecating types after colon
This commit is contained in:
+4
-2
@@ -1,10 +1,12 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
import kotlin.reflect.KFunction0
|
||||
|
||||
class A {
|
||||
fun main() {
|
||||
val x = ::A
|
||||
|
||||
x : KFunction0<A>
|
||||
checkSubtype<KFunction0<A>>(x)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +14,6 @@ class SomeOtherClass {
|
||||
fun main() {
|
||||
val x = ::A
|
||||
|
||||
x : KFunction0<A>
|
||||
checkSubtype<KFunction0<A>>(x)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user