deprecating types after colon
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
// !CHECK_TYPE
|
||||
|
||||
package kotlin1
|
||||
|
||||
import java.util.*
|
||||
|
||||
fun main(args : Array<String>) {
|
||||
val al : ArrayList<Int> = ArrayList<Int>()
|
||||
al.clone() : Any // A type mismatch on this line means that jdk-annotations were not loaded
|
||||
checkSubtype<Any>(al.clone()) // A type mismatch on this line means that jdk-annotations were not loaded
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user