September 07, 2007 [Issue 1481] New: add final on template function cause local variable be finaled | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1481 Summary: add final on template function cause local variable be finaled Product: D Version: 1.018 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: redsea@163.com error message: Error: cannot modify final variable 'p' code: module test; import test1; class C { final void test(bool check)() { int p; p++; } } void main() { C c = new C; c.test!(false)(); } -- |
November 21, 2012 [Issue 1481] add final on template function cause local variable be finaled | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1481 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #1 from Don <clugdbug@yahoo.com.au> 2012-11-21 00:43:40 PST --- This is fixed in both D1 and D2. Part of an attribute bugfix I believe. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation