blob: e8e707a654655fa59ea45634802cf19811f40b16 [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 The supertypes of an interface are its direct supertypes and their supertypes.
* @description Trivially checks that an interface extending some other interface extends Object as well.
* @author iefremov
* @reviewer rodionov
*/
import "../../Utils/expect.dart";
class I {}
class I2 implements I {}
class A implements I2 {}
main() {
Expect.isTrue(new A() is Object);
Expect.isTrue(new I2() is Object);
}