Files
kotlin-fork/compiler/testData/diagnostics/testsWithJsStdLib/name/nameSwapInOverride.kt
T
2017-09-26 13:56:19 +03:00

22 lines
431 B
Kotlin
Vendored

interface I {
@JsName("bar")
fun foo()
@JsName("foo")
fun bar()
}
interface J {
fun foo()
fun bar()
}
class A : I, J {
// Duplicate diagnostics are expected here, since `bar()` function gets both `foo` and `bar` names and clashes with both
// names of `foo()` function.
<!JS_NAME_CLASH, JS_NAME_CLASH!>override fun bar()<!> {}
<!JS_NAME_CLASH, JS_NAME_CLASH!>override fun foo()<!> {}
}