Files
sdk/pkg/compiler/test/sourcemaps/stacktrace/null_check.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

20 lines
422 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(1);
/*1:main*/ test(null);
test(2);
}
@pragma('dart2js:never-inline')
test(c) {
doSomething();
c /*2:test*/ !;
doSomething();
}
@pragma('dart2js:never-inline')
doSomething() {}