Summary: Incorrect conversion of function returning
                    `typeof(null)` to function returning an array
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from Denis Shelomovskij <> 2012-08-26 
13:56:44 MSD ---
void f(int[] function() del)

typeof(null) g() { return null; }

void main()
    f(() => null);
As a result `f(() => null)` will trigger this issue too. This makes lambda
expressions returning null very dangerous.

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

Reply via email to