← Back to index
|
Original Bugzilla link
Bug 16275 – final functions allowed
Status
RESOLVED
Resolution
WONTFIX
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-07-13T13:11:53Z
Last change time
2017-11-23T10:25:25Z
Assigned to
No Owner
Creator
vladdeSV
Comments
Comment #0
by v — 2016-07-13T13:11:53Z
Defining a function (not method) as final works. //>> final function final int foo() { return 40 + 2; } //<<
Comment #1
by razvan.nitu1305 — 2017-11-23T10:25:25Z
That's not a problem, it doesn't affect the code in anyway. As in the case of extern (C) class, the attribute is ignored. Closing as wontfix.