Files
kotlin-fork/js/js.translator/testData/box/jsCode/comments.kt
T
2022-04-11 14:25:46 +00:00

29 lines
1022 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1282
// CHECK_COMMENT_EXISTS: text="Single line comment" multiline=false
// CHECK_COMMENT_EXISTS: text="Multi line comment" multiline=true
// CHECK_COMMENT_EXISTS: text="After call single line comment" multiline=false
// CHECK_COMMENT_EXISTS: text="After call multi line comment" multiline=true
// CHECK_COMMENT_DOESNT_EXIST: text="random position comment 1" multiline=true
// CHECK_COMMENT_DOESNT_EXIST: text="random position comment 2" multiline=true
// CHECK_COMMENT_DOESNT_EXIST: text="random position comment 3" multiline=true
package foo
fun box(): String {
js("""
function foo() {}
// Single line comment
foo();
/* Multi line comment */
foo();
foo(); // After call single line comment
foo(); /* After call multi line comment */
var /*random position comment 1*/ c /*random position comment 2*/ = /*random position comment 3*/ "Random position";
""")
return "OK"
}