mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 09:33:27 +01:00
[svn r5] Initial commit. Most things are very rough.
This commit is contained in:
15
test/virtcall.d
Normal file
15
test/virtcall.d
Normal file
@@ -0,0 +1,15 @@
|
||||
module virtcall;
|
||||
|
||||
class C
|
||||
{
|
||||
override char[] toString()
|
||||
{
|
||||
return "overridden";
|
||||
}
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
C c = new C;
|
||||
auto s = c.toString();
|
||||
}
|
||||
Reference in New Issue
Block a user