blob: 6ecfde9d3aae4bb3cf66c329a02ea5e901b59946 [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);
Expect.runtimeIsType<I1>(new A());
Expect.runtimeIsType<I0>(new A());
}