mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 15:21:31 +00:00
c10e96ba2f
Change-Id: I9daeebde586a00169bdaf069c7dc2fdc5d3d97f2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/147160 Commit-Queue: Lasse R.H. Nielsen <lrn@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com>
16 lines
436 B
Dart
16 lines
436 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';
|
|
|
|
void main() {
|
|
test();
|
|
}
|
|
|
|
// Testing that a block bodied async function may not return non-void Future
|
|
// values
|
|
void test() async {
|
|
return /*@compile-error=unspecified*/ null as Future<int>;
|
|
}
|