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.
Comment #2 by shro8822 — 2007-11-08T16:30:49Z
try
assert(is(typeof(Lex.myidinst):myid));
Comment #3 by davidl — 2007-11-09T04:42:07Z
oh , i didn't notice isexpression is for type only