-
Notifications
You must be signed in to change notification settings - Fork 74
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
byexample/code-generation-parser example doesn't compile #261
Comments
Thanks a lot for the ping. I don't know how this passed and got through our CI systems, but I will investigate once I am back home in a few days. |
You've added extra curly brackets in the switch statement, and it does compiles now. |
I would propose this as example code:
|
Good idea. I just wanted to fix it. |
works for me |
`rdmd playground.d
onlineapp.d(14): Error: template onlineapp.main.each!((e) => conf.parse(e)).each cannot deduce function from argument types !()(Result), candidates are:
/dlang/dmd/linux/bin64/../../src/phobos/std/algorithm/iteration.d(904): onlineapp.main.each!((e) => conf.parse(e)).each(Range)(Range r) if (!isForeachIterable!Range && (isRangeIterable!Range || __traits(compiles, typeof(r.front).length)))
/dlang/dmd/linux/bin64/../../src/phobos/std/algorithm/iteration.d(943): onlineapp.main.each!((e) => conf.parse(e)).each(Iterable)(auto ref Iterable r) if (isForeachIterable!Iterable || __traits(compiles, Parameters!(Parameters!(r.opApply))))
`
https://tour.dlang.org/tour/en/byexample/code-generation-parser
https://github.com/dlang-tour/english/blob/master/byexample/code-generation-parser.md
The text was updated successfully, but these errors were encountered: