mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
19 lines
374 B
Kotlin
Vendored
19 lines
374 B
Kotlin
Vendored
package foo
|
|
|
|
import kotlin.jvm.*
|
|
|
|
external fun bar(l: Long, s: String): Double
|
|
|
|
fun box(): String {
|
|
var d = 0.0
|
|
|
|
try {
|
|
d = bar(1, "")
|
|
return "Link error expected on object"
|
|
}
|
|
catch (e: java.lang.UnsatisfiedLinkError) {
|
|
if (e.message != "foo.TopLevelKt.bar(JLjava/lang/String;)D") return "Fail 1: " + e.message
|
|
}
|
|
|
|
return "OK"
|
|
} |