July 29, 2014 [Issue 13222] New: Interface generation does not include auto for return type | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13222 Issue ID: 13222 Summary: Interface generation does not include auto for return type Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: trivial Priority: P1 Component: DMD Assignee: nobody@puremagic.com Reporter: alphaglosined@gmail.com Given code (from Vibe.d vibe.internal.meta.funcattr): auto before(alias Hook)(string parameter_name) { return InputAttribute!Hook(parameter_name); } The given code will outputted for -op -Hd before(alias Hook)(string parameter_name) { return InputAttribute!Hook(parameter_name); } Which is not syntactically correct and will not compile. Which gives errors such as, if it were to be on the import path and used: P:\test2\static\routes\test2.d P:\test2\bin\bininfo.d P:\test2\deps\imports\static\vibe\internal\meta\funcattr.di(4): Error: unexpected ( in declarator P:\test2\deps\imports\static\vibe\internal\meta\funcattr.di(5): Error: no identifier for declarator before(string parameter_name) Assertion failure: 'ident' on line 144 in file 'dsymbol.c' -- |
Copyright © 1999-2021 by the D Language Foundation