3b4fe0dc06
Closes #43536. Bug: https://github.com/dart-lang/sdk/issues/43536 Change-Id: I6616739e7ac0eb0be084988cef0460e916a3b448 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/165804 Commit-Queue: Dmitry Stefantsov <dmitryas@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
14 lines
372 B
Dart
14 lines
372 B
Dart
// 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.
|
|
|
|
class C<T> {
|
|
foo<E extends T>(List<E> list) {
|
|
List<E> variable = method(list);
|
|
}
|
|
|
|
List<F> method<F extends T>(List<F> list) => list;
|
|
}
|
|
|
|
main() {}
|