test for fixed KT-1891

This commit is contained in:
Dmitry Jemerov
2012-06-08 18:44:42 +02:00
parent 2e14454391
commit 803a5e5b65
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,14 @@
class MyList<T>() {
var value: T? = null
fun get(index: Int): T = value!!
fun set(index: Int, value: T) { this.value = value }
}
fun box(): String {
val list = MyList<Int>()
list[17] = 1
list[17] = list[18]++
return "OK"
}