Mercurial > projects > ldc
view tests/mini/bug189_interfacecast.d @ 1397:fdfc4060bcec
fix missing 'test' mnemonic and add several variations
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Tue, 19 May 2009 11:58:54 -0600 |
parents | acc834cb1657 |
children |
line wrap: on
line source
interface I {} class A : I {} class B : A {} void main () { A a = new A; I i = a; assert(!cast(B)a); assert(!cast(B)i); }