Files
sdk/tests/language_2/future_or_function_test.dart
T
Mayank Patke af5a466e3b [dart2js] (Old RTI) Check function subtypes after checking for FutureOr.
Change-Id: I7d2feab60295304377e48fddce901aea1c79ce19
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/112481
Reviewed-by: Stephen Adams <sra@google.com>
2019-08-09 02:41:30 +00:00

11 lines
351 B
Dart

// Copyright (c) 2019, 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';
import 'package:expect/expect.dart';
main() {
Expect.subtype<void Function(), FutureOr<void Function()>>();
}