Bug 8559 – void and function type prints redundant error message with init property

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-08-18T12:30:00Z
Last change time
2015-06-09T05:11:49Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2012-08-18T12:30:20Z
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
Comment #1 by k.hara.pg — 2012-08-19T01:11:45Z
Comment #2 by github-bugzilla — 2012-08-20T07:47:42Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7c6f6eb30fb662753592621d99d14e7029cb904d fix Issue 8559 - void and function type prints redundant error message with init property https://github.com/D-Programming-Language/dmd/commit/747efc636384ffb287a63004e7da45967d9db18b Merge pull request #1090 from 9rnsr/fix8559 Issue 8559 - void and function type prints redundant error message with init property
Comment #3 by k.hara.pg — 2012-09-23T18:52:22Z