Mercurial > projects > dstress
view compile/t/typeof_10_C.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | daef239f37cf |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Tomasz Stachowiak <bugzilla@digitalmars.com> // @date@ 2006-09-27 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=380 // @desc@ [Issue 380] New: cannot use typeof(*this) in a static context module dstress.compile.t.typeof_10_C; struct Foo{ typeof(*typeof(this).init) x; } static assert(is(Foo == typeof(Foo.x)));