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

           Summary: ref Primitives Can Be Implicitly Cast To immutable
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: dsim...@yahoo.com


--- Comment #0 from David Simcha <dsim...@yahoo.com> 2010-11-24 12:20:35 PST ---
The following invalid code is accepted:

bool isSmall(immutable ref int num) {
    return num < 5;
}

void main() {
    int num;
    isSmall(num);
}

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

Reply via email to