Mercurial > projects > dstress
view run/opCast_02.d @ 1330:f3f715978184
Georg Wrede <georg@iki.fi>
2007-01-07
mail:45A120F5.1050108@iki.fi
author | thomask |
---|---|
date | Sat, 13 Jan 2007 10:33:49 +0000 |
parents | a33ad7189d21 |
children | 52c9e86b6486 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Carlos Santander B. <carlos8294@msn.com> // @date@ 2004-09-18 // @uri@ news:cihrpp$9gt$1@digitaldeamon.com // @url@ nntp://digitalmars.com/digitalmars.D.bugs/1865 module dstress.run.opCast_02; class Parent{ void test(int i){ } int opCast(){ return 0; } } class Child : Parent{ } int main(){ (new Child()).test=2; return 0; }