Thread overview
[Issue 1632] is expression fail to work as expected
Nov 08, 2007
d-bugmail
Nov 08, 2007
d-bugmail
Nov 09, 2007
d-bugmail
November 08, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1632


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com




------- Comment #1 from smjg@iname.com  2007-11-08 16:23 -------
What is the bug you're reporting?

That the assert fails?  This is correct.  For an IsExpression to evaluate to true, what you give it must be a semantically valid _type_.  Lex.myidinst isn't a type, it's a struct member.


-- 

November 08, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1632





------- Comment #2 from shro8822@vandals.uidaho.edu  2007-11-08 16:30 -------
try
    assert(is(typeof(Lex.myidinst):myid));


-- 

November 09, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1632


davidl@126.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |blocker
             Status|NEW                         |RESOLVED
           Priority|P2                          |P1
         Resolution|                            |INVALID




------- Comment #3 from davidl@126.com  2007-11-09 04:42 -------
oh , i didn't notice isexpression is for type only


--