digitalmars.D.bugs - default parameter in inner function with aliased return type
- Ilya Zaitseff (19/19) Sep 05 2004 [bug.d]
[bug.d] alias int int_alias; void main() { int foo(char[] b = "") // ok { return 0; } int_alias bar(char[] b = "") // error { return 0; } } Compiler [dmd 0.101] output: bug.d(9): found 'bar' when expecting ';' following 'statement' bug.d(9): found '[' when expecting '.' following 'char' bug.d(9): found ']' when expecting identifier following 'char.' bug.d(9): found 'b' when expecting ')' bug.d(9): found ')' when expecting ';' following 'statement'
Sep 05 2004