Enhanced test data: KT-1361-1, toArray.kt, objectDeclaration.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user