Changed "jdk headers" to "jdk annotations" in test and test data directories names.

This commit is contained in:
Evgeny Gerashchenko
2012-07-07 20:32:39 +04:00
parent 8050b96f27
commit 040d2f8945
8 changed files with 6 additions and 6 deletions
@@ -0,0 +1,31 @@
package kotlin1
import java.util.*
fun main(args : Array<String>) {
val al : ArrayList<Int> = ArrayList<Int>()
val al1 = ArrayList<Int>(1)
// for (x in al1) {
//
// }
val <!UNUSED_VARIABLE!>al2<!> = ArrayList<Int>(ArrayList<Int>())
al : RandomAccess
al.clear() : Unit
al.add(1) : Boolean
al.add(0, 1) : Unit
al.addAll(al1) : Boolean
al.addAll(0, al1) : Boolean
al.get(0) : Int
val m = HashMap<String, Int>()
m.put("", 1)
test(al, m)
}
fun test(a : List<Int>, m : Map<String, Int>) {
System.out.println(
a.get(0) + 1
)
HashMap<Int, Int>().get(0)
if (m.get("") != null)
System.out.println(m.get("").sure().plus(1))
}
@@ -0,0 +1,8 @@
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
}
@@ -0,0 +1,10 @@
package kotlin1
import java.util.*
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>
}