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

Regression: parameter default value + typedesc parameter causes compiler crash #11660

jwollen opened this issue Jul 5, 2019 · 0 comments


Copy link

commented Jul 5, 2019

The following crashes the compiler. This works fine in 0.19.6

func test(T: typedesc; arg: T = 0) = discard

Both test[T](arg: T = 0) and test[T](_: typedesc[T]; arg: T = 0) still work, as does passing a parameter explicitly.

Araq added a commit that referenced this issue Jul 7, 2019

@Araq Araq closed this in bab1f67 Jul 7, 2019

narimiran added a commit that referenced this issue Jul 8, 2019

fixes #11660 (#11677)
(cherry picked from commit bab1f67)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.