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

cannot use default parameters in __export__ed class definition #273

Open
kazuho opened this issue Oct 1, 2013 · 0 comments
Open

cannot use default parameters in __export__ed class definition #273

kazuho opened this issue Oct 1, 2013 · 0 comments
Labels

Comments

@kazuho
Copy link
Member

kazuho commented Oct 1, 2013

The following code should be able to compile (since it is just defining a default parameter value), but fails with the error below.

abstract __export__ class T {
  abstract function f(b : boolean = false) : void;
}
[tmp/export-default-param.jsx:2:11] methods with __export__ attribute cannot be overloaded
  abstract function f(b : boolean = false) : void;
           ^^^^^^^^

[tmp/export-default-param.jsx:2:11] Note: previously defined here
  abstract function f(b : boolean = false) : void;
           ^^^^^^^^

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

No branches or pull requests

1 participant