Summary: Error: 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

Created an attachment (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:
------- You are receiving this mail because: -------

Reply via email to