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.