view compile/t/template_41_A.d @ 1096:daa894e9fb12

[Issue 276] Compiler erroneously thinks an aggregate inner template will add a field to it Bruno Medeiros <daiphoenix@lycos.com> 2006-08-02 news:bug-276-3@http.d.puremagic.com/issues/
author thomask
date Mon, 14 Aug 2006 11:37:28 +0000
parents
children daef239f37cf
line wrap: on
line source

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

// @author@	Bruno Medeiros <daiphoenix@lycos.com>
// @date@	2006-08-02
// @uri@	news:bug-276-3@http.d.puremagic.com/issues/

module dstress.compile.t.template_41_A;

struct S{
	template T1(){
		template T2(int i) {
			const int T2 = i + 1;
		}
	}
}

alias S.T1!().T2 inc;

static assert(inc!(2) == 3);