fix: function body comments.
This commit is contained in:
+7
-1
@@ -1,6 +1,8 @@
|
||||
// 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="Single line comment inside function" multiline=false
|
||||
// CHECK_COMMENT_EXISTS: text="Multi line comment inside function" 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
|
||||
@@ -11,7 +13,11 @@ package foo
|
||||
|
||||
fun box(): String {
|
||||
js("""
|
||||
function foo() {}
|
||||
function foo() {
|
||||
// Single line comment inside function
|
||||
Object;
|
||||
/*Multi line comment inside function*/
|
||||
}
|
||||
|
||||
// Single line comment
|
||||
foo();
|
||||
|
||||
Reference in New Issue
Block a user