[Issue 5101] Poorly formed error against non-const template on const object

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 23 17:25:37 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=5101


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich at gmail.com
         Resolution|                            |DUPLICATE


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-01-23 17:25:36 PST ---
Add parens to the call and you'll get this in 2.061:

test.d(7): Error: mutable method test.MyClass.get!(double).get is not callable
using a const object

*** This issue has been marked as a duplicate of issue 4947 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list