[Issue 8559] New: void and function type prints redundant error message with init property
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 18 12:30:23 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8559
Summary: void and function type prints redundant error message
with init property
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: diagnostic
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2012-08-18 12:30:20 PDT ---
void foo(){}
void main()
{
auto x = void.init;
auto y = typeof(foo).init;
}
Current output:
test.d(4): Error: void does not have an initializer
test.d(4): Error: void does not have a default initializer
test.d(5): Error: function does not have an initializer
test.d(5): Error: function does not have a default initializer
Expected:
test.d(4): Error: void does not have a default initializer
test.d(5): Error: function does not have a default initializer
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list