Mercurial > projects > dstress
annotate run/opCast_01.d @ 0:3269e4627918
init dstress
author | svnowner |
---|---|
date | Sat, 25 Sep 2004 22:33:30 +0000 |
parents | |
children | 3414705c41ac |
rev | line source |
---|---|
0 | 1 // $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/opCast_01.d,v 1.1 2004/09/23 00:11:54 th Exp $ |
2 | |
3 // @author@ Carlos Santander B. <carlos8294@msn.com> | |
4 // @author@ 2004-09-18 | |
5 | |
6 class Parent{ | |
7 void test(int i){ | |
8 } | |
9 } | |
10 | |
11 class Child : Parent{ | |
12 int opCast(){ | |
13 return 0; | |
14 } | |
15 } | |
16 | |
17 int main(){ | |
18 (new Child).test=2; | |
19 return 0; | |
20 } |