Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prettyprinting FunctionHeader does not include default parameters #866

Open
Thizizmyname opened this issue Jun 21, 2018 · 0 comments
Open

Comments

@Thizizmyname
Copy link

Make sure the following boxes are checked before creating an issue:

  • prettyprinting of a function-header does not determine if a default value is provided and ignores it upon output
  • On development
  • Example:
active class Main

    def foo(i1 : int, i2 : int, i3 : int = 5) : unit
        ()
    end

    def main() : unit
        this.foo(10)
    end
end

Gives the following prettyprinted AST:

active class Main
  def main() : unit
    this.foo(10)
  end
  def foo(i1 : int, i2 : int, i3 : int) : unit
    ()
  end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant