`new switch` #213

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

Projects

None yet

2 participants

@vendethiel
Contributor

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

@gkz
Owner
gkz commented Dec 30, 2012

I'm not able to reproduce this.

@gkz gkz closed this Dec 30, 2012
@vendethiel
Contributor
loader = new switch LOAD_TYPE
| LOAD_NONE    => NoneLoader
| LOAD_CONTENT => ContentLoader
| LOAD_MDIALOG => DialogLoader
@gkz
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 in c42bbf6 Dec 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment