blob: 1c03436bbec877b24d54172cf16e69f9fab28740 [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 if I is listed in the extends
* clause of J.
* @description Checks that a type listed in the extends clause of another is its supertype.
* @author iefremov
* @reviewer rodionov
* @needsreview It's currently impossible to check whether a type is a direct supertype of another
* without some sort of reflection framework.
*/
import "../../Utils/expect.dart";
class I {}
class J extends I {}
main() {
Expect.isTrue(new J() is I);
}