comparison tests/mini/interface1.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/interface1.d@44a95ac7368a
children
comparison
equal deleted inserted replaced
340:351c0077d0b3 341:1bb99290e03a
1 module interface1;
2
3 extern(C) int printf(char*,...);
4
5 interface Inter
6 {
7 void func();
8 }
9
10 class Class : Inter
11 {
12 override void func()
13 {
14 printf("hello world\n");
15 }
16 }
17
18 void main()
19 {
20 scope c = new Class;
21 c.func();
22 Inter i = c;
23 i.func();
24 }