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


s...@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |s...@iname.com
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID
            Summary|alias type not equel to     |alias type not equal to
                   |origin type when typeof call|origin type when typeof
                   |on it                       |called on it




------- Comment #1 from s...@iname.com  2009-04-27 03:59 -------
The compiler is behaving correctly.

http://www.digitalmars.com/d/2.0/declaration.html#Typeof

Typeof:
        typeof ( Expression )
        typeof ( return )

"int" is not parseable as an expression, therefore "typeof(int)" correctly
fails to compile.

"inttype" is, OTOH, parseable as an expression, just not semantically valid as
one.  Therefore the IsExpression correctly evaluates to false.


-- 

Reply via email to