Enhanced test data: KT-1361-1, toArray.kt, objectDeclaration.

Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
This commit is contained in:
Pavel V. Talanov
2012-08-13 16:02:16 +04:00
parent c48e1d6319
commit d734cbb5b5
3 changed files with 27 additions and 12 deletions
@@ -1,21 +1,21 @@
//This is not treated correctly when object is created.
package foo
class B {
val d = true
fun f() : Boolean {
val c = object {
fun foo() : Boolean {
fun f(): Boolean {
val c = object {
fun foo(): Boolean {
return d
}
fun boo(): Boolean {
return foo()
}
}
return c.foo()
return c.boo()
}
}
fun box() : Boolean {
fun box(): Boolean {
return B().f()
}