blob: ba36f8c3ad5db84563260ed8ef752ceb0e82bd49 [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 implicit interface of class I is a direct supertype of the
/// implicit interface of class J iff:
/// • If I is Object, and J has no extends clause
/// • If I is listed in the extends clause of J.
/// • If I is listed in the implements clause of J
/// • If I is listed in the with clause of J
/// • If J is a mixin application of the mixin of I.
/// @description Checks that Object is a supertype of an an implicit interface
/// of a class declared without extends clause.
/// @author iefremov
import "../../../Utils/expect.dart";
class J {}
main() {
Expect.isTrue(new J() is Object);
Expect.runtimeIsType<Object>(new J());
}