view compile/t/typeof_15_A.d @ 1231:5c578f77e01b

[Issue 572] New: syntax error when using template instantiation with typeof Nazo Humei <lovesyao@hotmail.com> 2006-11-19 news:bug-572-3@http.d.puremagic.com/issues/
author thomask
date Sat, 25 Nov 2006 13:37:36 +0000
parents
children daef239f37cf
line wrap: on
line source

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

// @author@	Nazo Humei <lovesyao@hotmail.com>
// @date@	2006-11-19
// @uri@	news:bug-572-3@http.d.puremagic.com/issues/
// @desc@	[Issue 572] New: syntax error when using template instantiation with typeof

module dstress.compile.t.typeof_15_A;

class Test{
	static template T(){
		const int T = 2;
	}
}

Test o;

static assert(typeof(o).T!() == 2);