Mercurial > projects > ldc
view test/classes10.d @ 191:2900754a6989 trunk
[svn r207] Fixed: the runtime support didn't handle string switch.
author | lindquist |
---|---|
date | Mon, 12 May 2008 14:58:55 +0200 |
parents | 56a21f3e5d3e |
children |
line wrap: on
line source
module classes10; class C { int i; override char[] toString() { return "foobar"; } } void main() { Object o = new C; char[] s = o.toString(); assert(s == "foobar"); }