Files
kotlin/compiler/testData/codegen/java6/box/reflection/parameters/javaParametersHaveNoNames.kt
Mikhael Bogdanov 496a21254b Black box update
2017-03-20 18:46:01 +01:00

23 lines
450 B
Kotlin
Vendored

// 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, null, null), J::foo.parameters.map { it.name })
assertEquals(listOf(null), J::bar.parameters.map { it.name })
return "OK"
}