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

16 lines
464 B
Kotlin
Vendored

// FIR_DIFFERENCE
// The diagnostic cannot be implemented with the FIR frontend checker because it requires constant evaluation over FIR.
// The diagnostic is implemented as a klib check over IR.
// ERROR_POLICY: SEMANTIC
fun main(): Unit {
js(<!JSCODE_WARNING!>"var a = 08;"<!>)
js(<!JSCODE_WARNING!>"""var a =
08;"""<!>)
val code = "var a = 08;"
js(<!JSCODE_ARGUMENT_NON_CONST_EXPRESSION, JSCODE_CAN_NOT_VERIFY_JAVASCRIPT!>code<!>)
}