JS: move expressions test to box tests
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package foo
|
||||
|
||||
class B {
|
||||
val d = "OK"
|
||||
|
||||
fun f(): String {
|
||||
val c = object {
|
||||
fun foo(): String {
|
||||
return d
|
||||
}
|
||||
fun boo(): String {
|
||||
return foo()
|
||||
}
|
||||
}
|
||||
return c.boo()
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return B().f()
|
||||
}
|
||||
Reference in New Issue
Block a user