Bug 13222 – Interface generation does not include auto for return type
Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2014-07-29T06:32:31Z
Last change time
2021-09-14T13:54:21Z
Assigned to
No Owner
Creator
Richard Cattermole
Comments
Comment #0 by alphaglosined — 2014-07-29T06:32:31Z
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'
Comment #1 by razvan.nitu1305 — 2021-09-14T13:54:21Z