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

--- Comment #0 from David Simcha <> 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;

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

Reply via email to