mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
9 lines
271 B
D
9 lines
271 B
D
// https://issues.dlang.org/show_bug.cgi?id=20000
|
|
|
|
interface A { int a(); }
|
|
interface B { int b(); }
|
|
class C {}
|
|
|
|
bool isA(Object x) @safe { return cast(A) x !is null; }
|
|
bool isA(B x) @safe { return cast(A) x !is null; }
|
|
bool isA(C x) @safe { return cast(A) x !is null; }
|