Skip to content

[BUG] Comment above print function #21

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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