Renamed *.jet to *.kt in test data of JetPsiCheckerTest.

This commit is contained in:
Evgeny Gerashchenko
2012-11-12 19:23:29 +04:00
parent 8d7e79c806
commit 799a986812
73 changed files with 148 additions and 148 deletions
+17
View File
@@ -0,0 +1,17 @@
// JET-72 Type inference doesn't work when iterating over ArrayList
import java.util.ArrayList
abstract class Item(val room: <warning>Object</warning>) {
abstract val name : String
}
val items: ArrayList<Item> = ArrayList<Item>()
fun test(room : <warning>Object</warning>) {
for(val item: Item in items) {
if (item.room === room) {
System.out.println("You see " + item.name)
}
}
}