comparison compile/m/mixin_32_A.d @ 1501:4819809e4b82

[Issue 1154] Implicit template return value + mixin results in invalid type deduction <onlystupidspamhere@yahoo.se> 2007-04-16 http://d.puremagic.com/issues/show_bug.cgi?id=1154
author thomask
date Mon, 23 Apr 2007 17:58:46 +0000
parents
children
comparison
equal deleted inserted replaced
1500:8ef71fc36ff7 1501:4819809e4b82
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ <onlystupidspamhere@yahoo.se>
6 // @date@ 2007-04-16
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1154
8 // @desc@ [Issue 1154] Implicit template return value + mixin results in invalid type deduction
9
10 module dstress.compile.m.mixin_32_A;
11
12 template foo() {
13 alias int foo;
14 }
15
16 foo!() bar;
17
18 static assert(is(typeof(bar) == int));