August 17, 2007 [Issue 1426] New: const(templated class) allows calling mutable methods | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1426 Summary: const(templated class) allows calling mutable methods Product: D Version: 2.003 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: Daniel919@web.de class Foo(T) { void bar() {} } const(Foo!(int)) foo = new Foo!(int)(); foo.bar(); It's working, but it should fail with: Error: foo.bar can only be called on a mutable object -- |
March 17, 2010 [Issue 1426] const(templated class) allows calling mutable methods | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1426 Steven Schveighoffer <schveiguy@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |schveiguy@yahoo.com Resolution| |FIXED --- Comment #1 from Steven Schveighoffer <schveiguy@yahoo.com> 2010-03-16 20:08:30 PDT --- Unsure of the version this was fixed, but it works as of 2.041. -- 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