mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:36:59 +00:00
1a832455e6
Change-Id: I4fc4bc583f6fe25a0a083efc6b9cda5ef9ae5ceb Reviewed-on: https://dart-review.googlesource.com/66521 Commit-Queue: Leaf Petersen <leafp@google.com> Reviewed-by: Erik Ernst <eernst@google.com>
19 lines
514 B
Dart
19 lines
514 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';
|
|
|
|
/*
|
|
* `return exp;` where `exp` has static type `S` is an error if `flatten(S)` is
|
|
`void` and `flatten(T)` is not `void`, `dynamic`, or `Null`.
|
|
*/
|
|
Future<void> v = null;
|
|
FutureOr<Object> test() async {
|
|
return /*@compile-error=unspecified*/ v;
|
|
}
|
|
|
|
void main() {
|
|
test();
|
|
}
|