view compile/t/typeof_10_A.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_A;

struct Foo{
        typeof(this) x;
}

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