Mercurial > projects > dstress
changeset 1204:ac780878d371
[Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones
Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl>
2006-10-17
news:bug-440-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Sun, 22 Oct 2006 15:24:24 +0000 |
parents | 3658e354d3bd |
children | 37d80331f28f |
files | nocompile/f/final_12_C.d |
diffstat | 1 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/f/final_12_C.d Sun Oct 22 15:24:24 2006 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Tomasz Stachowiak <h3r3tic@mat.uni.torun.pl> +// @date@ 2006-10-17 +// @uri@ news:bug-440-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 440] New: dmd.170 fails to mark final methods as implementations of abstract ones + +// __DSTRESS_ELINE__ 24 + +module dstress.nocompile.f.final_12_C; + +interface I { + void foo(); +} + +class Parent : I { + final void foo() { + } +} + +class Child : Parent, I { + void foo() { + } +}