Files
kotlin-fork/compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/packageAndFunction.kt
T
Alexander Korepanov 0f4c550ee0 [JS IR] Add JS BE diagnostic tests
Add tests for:
 - EXPORTING_JS_NAME_CLASH
 - EXPORTING_JS_NAME_CLASH_ES

^KT-61710
2023-09-23 19:49:17 +02:00

19 lines
367 B
Kotlin
Vendored

// FIR_IDENTICAL
// FILE: A.kt
@file:Suppress("OPT_IN_USAGE", "JS_NAME_CLASH")
package foo.bar
@JsExport
val test = 1
// FILE: B.kt
@file:Suppress("OPT_IN_USAGE", "JS_NAME_CLASH")
package foo
<!EXPORTING_JS_NAME_CLASH!>@JsExport fun bar() = 2<!>
// FILE: C.kt
@file:Suppress("OPT_IN_USAGE", "JS_NAME_CLASH")
<!EXPORTING_JS_NAME_CLASH!>@JsExport fun foo() = 2<!>