This is actually fixed but behind a switch (maybe because it has bugs):
{.experimental: "flexibleOptionalParams".}
template h( foo = "", bar : untyped ) =
echo foo
bar
h "foo" :
echo "bar"
h:
echo "foo"
Run
- How is default argument before code line one? mardiyah
- How is default argument before code line one? SolitudeSF
- How is default argument before code line one? Hlaaftana
