Files
kotlin-fork/compiler/testData/diagnostics/testsWithJsStdLib/name/nameSwapInOverride.fir.kt
T
2023-01-09 08:57:08 +00:00

22 lines
361 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.
override fun bar() {}
override fun foo() {}
}