http://d.puremagic.com/issues/show_bug.cgi?id=7071
Summary: "final:" shouldn't affect variables
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: minor
Priority: P3
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Vladimir Panteleev <[email protected]> 2011-12-06
05:22:08 PST ---
This code works in D1:
class C
{
final:
string s;
}
In D2 it results in:
Error: variable test_final.C.s final cannot be applied to variable
Since it works in D1, I assume it's an unintentional regression?
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------