view compile/t/typeof_10_D.d @ 1153:bd7f77817bf7

[Issue 380] New: cannot use typeof(*this) in a static context Tomasz Stachowiak <bugzilla@digitalmars.com> 2006-09-27 news:bug-380-3@http.d.puremagic.com/issues/
author thomask
date Fri, 29 Sep 2006 06:55:39 +0000
parents
children daef239f37cf
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Tomasz Stachowiak <bugzilla@digitalmars.com>
// @date@	2006-09-27
// @uri@	news:bug-380-3@http.d.puremagic.com/issues/
// @desc@	[Issue 380] New: cannot use typeof(*this) in a static context

module dstress.compile.t.typeof_10_D;

struct Foo{
        alias typeof(*typeof(this).init) x;
}

static assert(is(Foo == Foo.x));