mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
30f0026022
In other words, C<dynamic> <: C<FutureOr<dynamic>>, because dynamic <: FutureOr<dynamic>. Add regression test. Change-Id: I64bcb3b6926143d3176f0afcd1f28d30582309fa Reviewed-on: https://dart-review.googlesource.com/75400 Reviewed-by: Vyacheslav Egorov <vegorov@google.com> Commit-Queue: Régis Crelier <regis@google.com>
13 lines
346 B
Dart
13 lines
346 B
Dart
// 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.
|
|
|
|
import 'dart:async';
|
|
|
|
main() {
|
|
Future f = new Future(() => 12345);
|
|
Future<FutureOr> f1 = f;
|
|
|
|
FutureOr fo = f;
|
|
f1 = fo;
|
|
}
|