[Test] Merge box against java tests into codegen black box tests

This commit is contained in:
Dmitriy Novozhilov
2021-01-27 16:19:22 +03:00
parent 6f3713af5f
commit 99cb85ab00
173 changed files with 117615 additions and 117302 deletions
@@ -1,14 +1,4 @@
// FILE: test.kt
fun test(a: Any) {
a as (String) -> String
J.use(a)
}
fun box(): String {
test({s: String? -> s})
return "OK"
}
// MODULE: lib
// FILE: JFoo.java
public interface JFoo<T> {
T foo(T x);
@@ -20,3 +10,16 @@ public class J {
jfoo.foo(null);
}
}
// MODULE: main(lib)
// FILE: test.kt
fun test(a: Any) {
a as (String) -> String
J.use(a)
}
fun box(): String {
test({s: String? -> s})
return "OK"
}