blob: 73f4a798a40abc93bee12008ccff5b84f77f0d49 [file] [log] [blame]
/*
* Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
/**
* @assertion S is a supertype of T , written S :> T , iff T is a subtype of S.
* @description Trivially checks that an interface extending some other
* interface extends its superinterfaces as well.
* @author iefremov
*/
import "../../../Utils/expect.dart";
class I0 {}
class I1 implements I0 {}
class I2 implements I1 {}
class A implements I2 {}
main() {
Expect.isTrue(new A() is I1);
Expect.isTrue(new A() is I0);
}