Loading java arrays as Array<out T> at method return type position, as well.
This commit is contained in:
@@ -6,5 +6,5 @@ fun main(args : Array<String>) {
|
||||
val al : ArrayList<Int> = ArrayList<Int>()
|
||||
|
||||
// A type mismatch on this line means that jdk-annotations were not loaded
|
||||
al.toArray(Array<Int>(3, {1})) : Array<Int>
|
||||
al.toArray(Array<Int>(3, {1})) : Array<out Int>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user