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

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

@gkz
Copy link
Owner

gkz commented Dec 30, 2012

I'm not able to reproduce this.

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

loader = new switch LOAD_TYPE
| LOAD_NONE    => NoneLoader
| LOAD_CONTENT => ContentLoader
| LOAD_MDIALOG => DialogLoader

@gkz
Copy link
Owner

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 as completed in c42bbf6 Dec 30, 2012
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

2 participants