Summary: Immutable/shared disappear in circular module imports
           Product: D
           Version: 2.036
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Tomasz SowiƄski <> 2009-12-17 14:28:24 
PST ---
Testcase (should pass):
module hello;
import test;

struct Strukt {
    Staly* s;
module test;
import hello;

immutable struct Staly {
    int a;

void f_strukt(Strukt* stk) {
    f_staly(stk.s);    // ups!

void f_staly(Staly* s) { }
Error: function test.f_staly (immutable(Staly)* s) is not callable using
argument types (Staly*)
Error: cannot implicitly convert expression ((*stk).s) of type Staly* to

Same story if Staly is shared.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to