deprecating types after colon
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
package b
|
||||
|
||||
fun bar() {
|
||||
@@ -5,8 +7,8 @@ fun bar() {
|
||||
val a2 = Array(1, {i: Int -> "$i"})
|
||||
val a3 = Array(1, {it})
|
||||
|
||||
a1 : Array<Int>
|
||||
a2 : Array<String>
|
||||
a3 : Array<Int>
|
||||
checkSubtype<Array<Int>>(a1)
|
||||
checkSubtype<Array<String>>(a2)
|
||||
checkSubtype<Array<Int>>(a3)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
//KT-1558 Exception while analyzing
|
||||
package j
|
||||
|
||||
@@ -16,9 +18,9 @@ fun testArrays(ci: List<Int?>, cii: List<Int?>?) {
|
||||
|
||||
val c5 = ci.toArray(Array<Int?>(<!NO_VALUE_FOR_PARAMETER, NO_VALUE_FOR_PARAMETER!>)<!>)
|
||||
|
||||
c1 : Array<Int?>
|
||||
c2 : Array<Int?>
|
||||
c3 : Array<Int?>
|
||||
c4 : Array<Int?>
|
||||
c5 : Array<Int?>
|
||||
checkSubtype<Array<Int?>>(c1)
|
||||
checkSubtype<Array<Int?>>(c2)
|
||||
checkSubtype<Array<Int?>>(c3)
|
||||
checkSubtype<Array<Int?>>(c4)
|
||||
checkSubtype<Array<Int?>>(c5)
|
||||
}
|
||||
Reference in New Issue
Block a user