Bug 18460 – Improve error message for missing 'new' for class instantiation

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-02-18T22:49:44Z
Last change time
2018-02-21T12:07:34Z
Keywords
pull
Assigned to
Seb
Creator
Seb

Comments

Comment #0 by greensunny12 — 2018-02-18T22:49:44Z
--- class Foo {} void main() { auto f = Foo(); } --- prints: --- onlineapp.d(4): Error: no property 'opCall' for type 'onlineapp.Foo' --- Imho this could vastly be improved. PR incoming.
Comment #1 by greensunny12 — 2018-02-20T23:46:49Z
Comment #2 by github-bugzilla — 2018-02-21T12:07:33Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/9722ef760768ea0be881268e158ed726bdcb99e0 Fix Issue 18460 - Improve error message for missing 'new' for class instantiation https://github.com/dlang/dmd/commit/9db7831b6e14ed61d65f43cd0915721766d47779 Merge pull request #7929 from wilzbach/fix-18460 Fix Issue 18460 - Improve error message for missing 'new' for class instantiation merged-on-behalf-of: Jacob Carlborg <[email protected]>