Black box update

This commit is contained in:
Mikhael Bogdanov
2017-03-17 10:18:07 +01:00
committed by Dmitry Jemerov
parent 40574d31ac
commit 496a21254b
14 changed files with 156 additions and 94 deletions

View File

@@ -0,0 +1,22 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT
// FILE: J.java
public class J {
void foo(String s, int i) {}
static void bar(J j) {}
}
// FILE: K.kt
import kotlin.test.assertEquals
fun box(): String {
assertEquals(listOf(null, "arg0", "arg1"), J::foo.parameters.map { it.name })
assertEquals(listOf("arg0"), J::bar.parameters.map { it.name })
return "OK"
}