commit | 0e5417a48fa9ca32c5e617c570a4712eb3b18c34 | [log] [tgz] |
---|---|---|
author | Robert Nystrom <rnystrom@google.com> | Fri May 28 01:12:07 2021 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Fri May 28 01:12:07 2021 +0000 |
tree | 08c2e4efde10c67f8eee9c3129b81c758e4a530a | |
parent | 4be320193683fe7e2da3167074137923e042cc27 [diff] |
Rename mis-named NNBD language tests. Without "_test" in the name, the test runner ignores them. Change-Id: I7dc2da51b980b1b5512fc2c2087238129bf1bd78 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200930 Auto-Submit: Bob Nystrom <rnystrom@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Commit-Queue: Bob Nystrom <rnystrom@google.com>
diff --git a/tests/language/nnbd/static_errors/late_final_without_initializer.dart b/tests/language/nnbd/static_errors/late_final_without_initializer_test.dart similarity index 99% rename from tests/language/nnbd/static_errors/late_final_without_initializer.dart rename to tests/language/nnbd/static_errors/late_final_without_initializer_test.dart index 9938078..57c0485 100644 --- a/tests/language/nnbd/static_errors/late_final_without_initializer.dart +++ b/tests/language/nnbd/static_errors/late_final_without_initializer_test.dart
@@ -2,7 +2,6 @@ // 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. - // Test that it is not a compile time error for a `final` variable to not have // an initializer if that variable is declared as `late`. import 'package:expect/expect.dart';
diff --git a/tests/language/nnbd/static_errors/local_function_inference.dart b/tests/language/nnbd/static_errors/local_function_inference_test.dart similarity index 77% rename from tests/language/nnbd/static_errors/local_function_inference.dart rename to tests/language/nnbd/static_errors/local_function_inference_test.dart index af81145..94e55fc 100644 --- a/tests/language/nnbd/static_errors/local_function_inference.dart +++ b/tests/language/nnbd/static_errors/local_function_inference_test.dart
@@ -23,7 +23,9 @@ return 3; } } - // ^ - // [analyzer] undefined - // [cfe] undefined +//^ +// [analyzer] unspecified +// [cfe] unspecified +// TODO(45942): This may be the wrong location, but until the linked issue is +// fixed and implementations report the error, this is as good as any. }
diff --git a/tests/language/nnbd/syntax/late_modifier_bug_39658.dart b/tests/language/nnbd/syntax/late_modifier_bug_39658_test.dart similarity index 100% rename from tests/language/nnbd/syntax/late_modifier_bug_39658.dart rename to tests/language/nnbd/syntax/late_modifier_bug_39658_test.dart