mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 04:27:17 +00:00
bae9560c8a
Fixes https://github.com/dart-lang/sdk/issues/46276 TEST=added regression test Change-Id: Iecdccd4af02c374d4d17d0c0d7985fdaeec5e42a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/202820 Reviewed-by: Alexander Markov <alexmarkov@google.com> Commit-Queue: Régis Crelier <regis@google.com>
16 lines
391 B
Dart
16 lines
391 B
Dart
// Copyright (c) 2021, 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.
|
|
|
|
abstract class Base<A, B> {}
|
|
|
|
extension on Object {
|
|
B? foo<A extends Base<A, B>, B extends Base<A, B>>(B? orig) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
main() {
|
|
print(Object().foo);
|
|
}
|