blob: 03ebdc98966a3af9814b43c8213e18f1d1450ea3 [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.6
class A {
int call(int x) => x * 2;
}
class B extends A {
int call(int x) => x * 3;
int call_super() {
// Assumes that super() means super.call().
// In reality, it is illegal to use it this way.
return super(5);
}
}
main() {
assert(new B().call_super() == 10);
}