Mercurial > projects > dstress
view run/interface_06.d @ 2:de27ca625bf7
extended abstract/alias and template tests
author | thomask |
---|---|
date | Sun, 26 Sep 2004 12:07:39 +0000 |
parents | |
children | 55a2c755d699 |
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{ MyInterface test(){ status++; return null; } } int main(){ Child bro = new Child(); assert(status==0); MyInterface sis = bro.test(); assert(status==1); return 0; }