mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-16 04:43:14 +01:00
Add testcase for #189 to mini tests.
This commit is contained in:
11
tests/mini/bug189_interfacecast.d
Normal file
11
tests/mini/bug189_interfacecast.d
Normal file
@@ -0,0 +1,11 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user