Files
sdk/pkg/front_end/testcases/nnbd/issue42540.dart
T
Johnni Winther 1ed7581898 [cfe] Add test for issue 42540
Closes #42540

Change-Id: I8ea8f03a2682a5b52867787144a2d81c7527ca11
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153340
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-07-07 08:55:09 +00:00

13 lines
341 B
Dart

// Copyright (c) 2020, 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.
dynamic getNull() => null;
Future<Object> fn() async {
Object o = await getNull();
return await getNull();
}
main() {}