blob: 27dc3334546a9ac6a3d0d819cb1ee883b62028ae [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
// This test checks that an override of a generic method is allowed in case of
// correctly defined f-bounded type variables.
class Foo<T extends Foo<T>> {}
abstract class Bar {
void fisk<S extends Foo<S>>();
}
class Hest implements Bar {
@override
void fisk<U extends Foo<U>>() {}
}
void main() {}