blob: b934006f6ede240ada0bf3fd6875df9845e442ab [file] [log] [blame]
// Copyright (c) 2020, 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
// This is a regression test for
class Cat {
bool eatFood(String food) => true;
class MockCat implements Cat {
dynamic noSuchMethod(Invocation invocation) {
var arg = invocation.positionalArguments[0];
return arg is String && arg.isNotEmpty;
class MockCat2 extends MockCat {
class MockCat3 extends MockCat2 implements Cat {
bool eatFood(String food, {double amount});
class MockCat4 extends MockCat2 implements HungryCat {}
abstract class HungryCat {
bool eatFood(String food, {double amount, double yetAnother});
main() {}