backend/tests: Add blackbox tests from Kotlin JVM
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
interface T {
|
||||
fun foo(): String
|
||||
}
|
||||
|
||||
val o = object : T {
|
||||
val a = "OK"
|
||||
val f = {
|
||||
a
|
||||
}()
|
||||
|
||||
override fun foo() = f
|
||||
}
|
||||
|
||||
fun box() = o.foo()
|
||||
Reference in New Issue
Block a user