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

           Summary: Error: f.bar can only be called on a mutable object,
                    not shared(foo)
           Product: D
           Version: 2.030
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: jason.james.ho...@gmail.com


Created an attachment (id=401)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=401)
Sample code demonstrating the issue

The compiler seems to offer no way to call functions on shared structs/classes
under certain scenarios.  The attached code demonstrates the simplest case I
could find.  Changing the type of foo to class, or moving the shared keyword on
the function bar has no effect.

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

Reply via email to