Fixes to tests: forgotten package names and tests
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package codegen.objectExpression.expr3
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
@Test fun runTest() {
|
||||
var cnt = 0
|
||||
|
||||
var x: Any = ""
|
||||
|
||||
for (i in 0 .. 1) {
|
||||
print(x)
|
||||
cnt++
|
||||
val y = object {
|
||||
override fun toString() = cnt.toString()
|
||||
}
|
||||
x = y
|
||||
}
|
||||
print(x)
|
||||
}
|
||||
|
||||
fun print(x: Any) = println(x.toString())
|
||||
Reference in New Issue
Block a user