# HG changeset patch # User thomask # Date 1164835244 0 # Node ID f882d5f15f9ef770a06936c537e6633ca1058d3c # Parent 74988b5160964b560f00ae82dcda22e6465300ee [Issue 611] New: IsExpression fails when inside implemented interface Michael Arntzenius 2006-11-27 news:bug-611-3@http.d.puremagic.com/issues/ diff -r 74988b516096 -r f882d5f15f9e compile/i/is_15_J.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/i/is_15_J.d Wed Nov 29 21:20:44 2006 +0000 @@ -0,0 +1,21 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Michael Arntzenius +// @date@ 2006-11-27 +// @uri@ news:bug-611-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 611] New: IsExpression fails when inside implemented interface + +module dstress.compile.i.is_15_J; + +template I(T){ + static assert(is(C : .I!(C))); + + interface I{ + } +} + +class C : I!(C){ +} + diff -r 74988b516096 -r f882d5f15f9e compile/i/is_15_K.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/i/is_15_K.d Wed Nov 29 21:20:44 2006 +0000 @@ -0,0 +1,21 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Michael Arntzenius +// @date@ 2006-11-27 +// @uri@ news:bug-611-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 611] New: IsExpression fails when inside implemented interface + +module dstress.compile.i.is_15_K; + +template I(T){ + interface I{ + } + + static assert(is(C : .I!(C))); +} + +class C : I!(C){ +} +