mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:47:13 +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
479 B
Dart
19 lines
479 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 `T` is `void` and
|
|
`S` is not `void`, `dynamic`, or `Null`
|
|
*/
|
|
Future<Object> v = null;
|
|
void test() {
|
|
return /*@compile-error=unspecified*/ v;
|
|
}
|
|
|
|
void main() {
|
|
test();
|
|
}
|