Skip to content

[BUG] Comment above print function #21

@divshekhar

Description

@divshekhar

Describe the bug
Comment above the print function results in an error.

To Reproduce

var x = 10;
var y = 20;

// function declaration
func add(x, y) {
    return x + y;
}

// Conditional function call
var res = if(x > y) { x; } else { add(x, y); }

// print result
println(add(res,y));
println(len("Hello World!"));

Output:

No prefix parse function for ) found
12

Expected behavior
It should print both the results:

50
12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions