fix: function body comments.

This commit is contained in:
Artem Kobzar
2022-04-07 20:08:21 +02:00
committed by teamcity
parent 672561b847
commit 86df391cab
4 changed files with 18 additions and 6 deletions
+7 -1
View File
@@ -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();