deprecating types after colon
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
data class A(val x: Int, val y: String)
|
||||
|
||||
fun foo(arr: Array<A>) {
|
||||
for ((b, c) in arr) {
|
||||
b : Int
|
||||
c : String
|
||||
checkSubtype<Int>(b)
|
||||
checkSubtype<String>(c)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user