[Issue 10452] CTFE: Cannot compare delegates with == or 'is'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 18 07:18:57 PDT 2013


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |CTFE, rejects-valid
            Summary|CTFE: if(x is null) Error:  |CTFE: Cannot compare
                   |cannot compare __lambda1 at |delegates with == or 'is'
                   |compile time                |
           Severity|enhancement                 |normal


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2013-07-18 07:18:55 PDT ---
This isn't an enhancement, it's a bug. All forms of delegate (null, delegate
literal, nested function, struct member, class member) should be comparable
with == and 'is'.

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


More information about the Digitalmars-d-bugs mailing list