blob: 43015b3fa033cf272124838786efff645bc34c83 [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 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, and we say
* that the method was looked up in c. 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 the method m in the superclass is found if there is
* no method m in a class.
* @author msyabro
*/
import '../../../../Utils/expect.dart';
class S {
int m() => 12345;
}
class C extends S {}
main() {
var o = new C();
Expect.equals(12345, o.m());
}