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:
+13
@@ -0,0 +1,13 @@
|
||||
interface T {
|
||||
fun result(): String
|
||||
}
|
||||
|
||||
class A(val x: String) {
|
||||
fun foo() = object : T {
|
||||
fun bar() = x
|
||||
|
||||
override fun result() = bar()
|
||||
}
|
||||
}
|
||||
|
||||
fun box() = A("OK").foo().result()
|
||||
Reference in New Issue
Block a user