blob: e37e76da4cff00f45c3f6f686f96e08a240eff8f [file] [log] [blame]
// Copyright (c) 2015, 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 result of a lookup of method m in class C with respect to
* library L is: If C declares a concrete instance method named m that is
* accessible to L, then that method is the result of the lookup. Otherwise,
* if C has a superclass S, then the result of the lookup is the result of
* looking up m in S with respect to L. Otherwise, we say that the method
* lookup has failed.
* @description Checks that if there is no method m in class C but class C
* has a superclass S,then the result of the lookup is the result of
* looking up m in S with respect to library L
* @author sgrekhov@unipro.ru
*/
import '../../../../Utils/expect.dart';
import 'superclass_lib.dart' as lib;
main() {
lib.C c = new lib.C();
Expect.equals(10, c.m1());
}