Summary: Regression(2.059): Type check is ignored when manifest
                    constant initializer is function literal
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-04-18 21:34:36 PDT ---
DMD should not compile this, but DMD2.059 does.

enum int c = function(){  };

DMD2.058 or earlier:
Error: cannot implicitly convert expression (__funcliteral1) of type void
function() pure nothrow @safe to int

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

Reply via email to