Files
kotlin-fork/compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/javaScriptEmpty.kt
T
2023-10-26 19:22:14 +00:00

20 lines
359 B
Kotlin
Vendored

// FIR_IDENTICAL
// ERROR_POLICY: SEMANTIC
fun testEmptyString() {
js(<!JSCODE_NO_JAVASCRIPT_PRODUCED!>""<!>)
}
const val SPACE = " "
fun testStringWithSpaces() {
js(<!JSCODE_NO_JAVASCRIPT_PRODUCED!>"\n \n$SPACE \t" + " "<!>)
}
fun testComment() {
js(<!JSCODE_NO_JAVASCRIPT_PRODUCED!>"""
// just a comment
$SPACE
"""<!>)
}