Mercurial > projects > dstress
view run/interface_05.d @ 2:de27ca625bf7
extended abstract/alias and template tests
author | thomask |
---|---|
date | Sun, 26 Sep 2004 12:07:39 +0000 |
parents | |
children | 5f98d4a33d49 |
line wrap: on
line source
// @author@ Steward Gordon <smjg_1998@yahoo.com> // @date@ 2004-09-01 int status; class Parent{ } interface MyInterface{ MyInterface test(); } class Child : Parent, MyInterface{ Child test(){ status++; return null; } } int main(){ Child bro = new Child(); assert(status==0); Child sis = bro.test(); assert(status==1); return 0; }