added 'class has Kotlin analog' error

to existing diagnostic tests
This commit is contained in:
Svetlana Isakova
2012-08-29 15:55:39 +04:00
parent a3194e9a46
commit 31831f2433
10 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -2,13 +2,13 @@
import java.util.ArrayList
abstract class Item(val room: Object) {
abstract class Item(val room: <warning>Object</warning>) {
abstract val name : String
}
val items: ArrayList<Item> = ArrayList<Item>()
fun test(room : Object) {
fun test(room : <warning>Object</warning>) {
for(val item: Item in items) {
if (item.room === room) {
System.out.println("You see " + item.name)