view tests/mini/bug189_interfacecast.d @ 1135:8ebbad15fc99

Remove struct padding which was making this test fail on 64-bit systems.
author Frits van Bommel <fvbommel wxs.nl>
date Tue, 24 Mar 2009 03:14:22 +0100
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);
}