Mercurial > projects > dstress
view run/f/final_12_B.d @ 1197:0e1bf1565db1
[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 | Sat, 21 Oct 2006 13:27:35 +0000 |
parents | |
children | f272d893dd3e |
line wrap: on
line source
// $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 module dstress.run.f.final_12_B; int status; interface I { void foo(); } class C : I { final int foo() { return ++status; } } int main() { I i = new C(); if(i.foo() != 1){ assert(0); } return 0; }