[Issue 21793] New: Cannot initialize shared member with -preview=nosharedaccess

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 2 22:26:17 UTC 2021


          Issue ID: 21793
           Summary: Cannot initialize shared member with
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: moonlightsentinel at disroot.org

The following code doesn't compile with -preview=nosharedaccess:

struct Child
    this(int) shared {}

struct Parent
    shared Child ch;
    this(int i) shared
        ch = shared Child(i);


More information about the Digitalmars-d-bugs mailing list