Mercurial > projects > ldc
view test/interface1.d @ 126:a2c2c3c1a73d trunk
[svn r130] fixed #28
author | lindquist |
---|---|
date | Wed, 28 Nov 2007 05:04:38 +0100 |
parents | 27b9f749d9fe |
children | 44a95ac7368a |
line wrap: on
line source
module interface1; interface Inter { void func(); } class Class : Inter { override void func() { printf("hello world\n"); } } void main() { scope c = new Class; c.func(); Inter i = c; i.func(); }