[Issue 135] typeof(x)() doesn't compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 8 05:43:14 PDT 2008


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


gide at nwawudu.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED




------- Comment #5 from gide at nwawudu.com  2008-09-08 07:43 -------
opCall_02_C.d has a bug, there is a extra bracket around typeof(x) which makes
the expression into a c-style cast.

if((typeof(x))() != 3){ // incorrect
if(typeof(x)() != 3){ // correct


-- 



More information about the Digitalmars-d-bugs mailing list