Files
sdk/pkg/compiler/test/sourcemaps/stacktrace/null_check_in_async.dart
T
Stephen Adams a6162d1ff0 [dart2js] Fix missing source location on null-check in async method
Change-Id: Idd2530b3cae582819a823132c9777086035e386a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/296027
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2023-04-19 16:31:22 +00:00

23 lines
478 B
Dart

// Copyright (c) 2023, 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.
main() {
test();
}
test() async {
final a = await foo(null);
doSomething();
a /*1:test*/ !;
doSomething();
await foo(a);
}
Future<String?> foo(String? value) {
return Future.value(value);
}
@pragma('dart2js:never-inline')
void doSomething() {}