64460ec47f
Change-Id: Id2befd868e93985d6af463c2ccd410cd56b68187 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/194721 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
20 lines
585 B
Dart
20 lines
585 B
Dart
// Copyright (c) 2018, 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
|
|
|
|
import './private_method_tearoff_lib.dart';
|
|
|
|
// `Bar' contains a private method `_f'. The function `baz' is declared in the
|
|
// same library as `Bar' and attempts to invoke `_f`. The generated Kernel code
|
|
// for `Foo' should contain a no such method forwarder for `_f'.
|
|
|
|
class Foo implements Bar {}
|
|
|
|
class Baz extends Foo {}
|
|
|
|
main() {
|
|
baz(new Foo());
|
|
}
|