blob: 24f245089e16ab549dfe30339b623e915e6ec593 [file] [log] [blame]
// https://issues.dlang.org/show_bug.cgi?id=19192
interface Foo
{
Foo covariant();
}
abstract class Frop : Foo {}
class Bar : Frop
{
Bar covariant() { return this; }
}
void main()
{
Foo foo = new Bar;
assert(foo is foo.covariant());
}