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

           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
        AssignedTo: nob...@puremagic.com
        ReportedBy: kekeni...@yahoo.co.jp


--- Comment #0 from kekeni...@yahoo.co.jp 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to