blob: 0ba2666fcf899c26447185c1400f4d4a5834940e [file] [log] [blame]
// Copyright (c) 2017, 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.
// @dart=2.9
class A {
int call(int x) => x * 2;
}
class B extends A {
int call(int x) => x * 3;
int call_super() {
// super() means super.call().
return super(5);
}
}
main() {
assert(new B().call_super() == 10);
}