[Issue 2091] D2 final cannot be applied to variable
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jun 22 23:58:18 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=2091
--- Comment #5 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/397752ba67e2db4868865b57ddfcd6f76724f386
fix Issue 2091 - D2 final cannot be applied to variable
D2 has `const` ro represent readonly data, therefore the error and suggestion
"perhaps you meant const?" is normally legitimate.
But, if the `final` attribute comes from a label or block style syntax, it's
too
restrict against class member layout.
To lift the limitation, display the error only when `final` is *directly*
applied on a variable.
Use same method to `synchrionized`, `abstract`, and `override`.
https://github.com/D-Programming-Language/dmd/commit/b9864b41576e3d20df0969e2731c19f663b55a31
Merge pull request #4714 from 9rnsr/fix2091
Issue 2091 - D2 final cannot be applied to variable
--
More information about the Digitalmars-d-bugs
mailing list