Bug 1277 – "in final const scope" not considered redundant storage classes

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-06-18T11:31:21Z
Last change time
2020-01-03T05:07:19Z
Keywords
accepts-invalid
Assigned to
Walter Bright
Creator
Matti Niemenmaa

Comments

Comment #0 by matti.niemenmaa+dbugzilla — 2007-06-18T11:31:21Z
This is an error, "redundant storage class final": void f(final final const scope int x) {} However, the following isn't, even though "in" is equivalent to "final const scope": void f(in final const scope int x) {} DMD should say "redundant storage class" for all except "in" in the above.
Comment #1 by bugzilla — 2007-06-27T20:56:47Z
Fixed dmd 2.001
Comment #2 by dlang-bot — 2020-01-03T05:07:19Z
dlang/dub pull request #1845 "Fix issue 1277: Missing dub.json causes infinite loop" was merged into master: - 616731f826c2ebbcd6ccd5cf57104b516d6b10fb by Geod24: Fix issue 1277: Missing dub.json causes infinite loop For some reason, having a 'source/app.d' was recognized as being in a package. This would load an empty package with no manifest and send the dependency resolver in an infinite loop. Remove the special detection of 'source/app.d' and rely only on manifest. Another option would have been to detect 'source/app.d' as a single-file package, but that is a bit too much magic (the user can just 'dub run --single source/app.d'). https://github.com/dlang/dub/pull/1845