Summary: null is null cannot be evaluated at compile time
           Product: D
           Version: 1.042
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: patch, rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

static assert(null is null);
bug.d(1): Error: static assert  (null is null) is not evaluatable at compile t

Whereas the code below compiles fine:
int main(){ 
   return (null is null);
This also applies to similar kinds of expressions, eg (null is typeid(int)).

The patch for this relies on my patch for 1524, otherwise you get an ICE with
"null is typeid(int)".


Reply via email to