deprecating types after colon
This commit is contained in:
+5
-3
@@ -1,3 +1,5 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
import kotlin.reflect.*
|
||||
|
||||
fun foo() {}
|
||||
@@ -9,7 +11,7 @@ fun main() {
|
||||
val y = ::bar
|
||||
val z = ::baz
|
||||
|
||||
x : KFunction0<Unit>
|
||||
y : KFunction1<Int, Unit>
|
||||
z : KFunction0<String>
|
||||
checkSubtype<KFunction0<Unit>>(x)
|
||||
checkSubtype<KFunction1<Int, Unit>>(y)
|
||||
checkSubtype<KFunction0<String>>(z)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user