blob: 53b8a950d760250bef4c51d5c31ac3896d972da0 [file] [log] [blame]
// 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.6
import './public_method_tearoff_lib.dart';
// `Bar' contains a public 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 _not_ contain a no such method forwarder for `f'.
class Foo extends Bar {}
void main() {
baz(new Foo());
}