[Issue 6695] New: immutable not inherited by members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 19 14:32:21 PDT 2011


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

           Summary: immutable not inherited by members
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: luka8088 at owave.net


--- Comment #0 from luka8088 <luka8088 at owave.net> 2011-09-19 14:31:54 PDT ---
import std.stdio;

immutable struct a {
  b b1;
}

struct b {
  void c () immutable {
    writeln(typeid(typeof(this))); // b instead of immutable(b)
  }
}
void main () {
  a a1;
  a1.b1.c();
}

-- 
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