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

`new switch` #213

Closed
vendethiel opened this issue Nov 20, 2012 · 3 comments
Closed

`new switch` #213

vendethiel opened this issue Nov 20, 2012 · 3 comments

Comments

@vendethiel
Copy link
Contributor

@vendethiel vendethiel commented Nov 20, 2012

does not work : new switch (invalid constructor)
works : (new) switch

@gkz
Copy link
Owner

@gkz gkz commented Dec 30, 2012

I'm not able to reproduce this.

@gkz gkz closed this Dec 30, 2012
@vendethiel
Copy link
Contributor Author

@vendethiel vendethiel commented Dec 30, 2012

loader = new switch LOAD_TYPE
| LOAD_NONE    => NoneLoader
| LOAD_CONTENT => ContentLoader
| LOAD_MDIALOG => DialogLoader
@gkz
Copy link
Owner

@gkz gkz commented Dec 30, 2012

Ah, it works if you have add a default.

@gkz gkz reopened this Dec 30, 2012
@gkz gkz closed this in c42bbf6 Dec 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants