split diagnostics/alt-headers test

This commit is contained in:
Stepan Koltsov
2012-01-31 22:22:39 +04:00
parent f3f725c94f
commit c88940c07c
3 changed files with 22 additions and 2 deletions
@@ -18,8 +18,6 @@ fun main(args : Array<String>) {
al.addAll(al1) : Boolean
al.addAll(0, al1) : Boolean
al.get(0) : Int
al.clone() : Object // A type mismatch on this line means that alt-headers were not loaded
al.toArray(Array<Int>(3, {1})) : Array<Int> // ^^^ same for this line
val m = HashMap<String, Int>()
m.put("", 1)
test(al, m)
@@ -0,0 +1,10 @@
// +JDK
package std1
import java.util.*
fun main(args : Array<String>) {
val al : ArrayList<Int> = ArrayList<Int>
al.clone() : Object // A type mismatch on this line means that alt-headers were not loaded
}
@@ -0,0 +1,12 @@
// +JDK
package std1
import java.util.*
fun main(args : Array<String>) {
val al : ArrayList<Int> = ArrayList<Int>
// A type mismatch on this line means that alt-headers were not loaded
al.toArray(Array<Int>(3, {1})) : Array<Int>
}