From bec37f18968633b9d341fc3b37e37aaebde81475 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Thu, 4 Mar 2021 13:36:36 +0000 Subject: [PATCH] Work around #45192 in unit_test_suites.dart Bug: https://github.com/dart-lang/sdk/issues/45192 Change-Id: I54300959872b02bb783923ce51e4aa2392e6c482 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/189041 Reviewed-by: Johnni Winther Commit-Queue: Paul Berry --- pkg/front_end/test/unit_test_suites.dart | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkg/front_end/test/unit_test_suites.dart b/pkg/front_end/test/unit_test_suites.dart index 39683632ae61..aafc70c1cb82 100644 --- a/pkg/front_end/test/unit_test_suites.dart +++ b/pkg/front_end/test/unit_test_suites.dart @@ -8,4 +8,13 @@ // By marking this file (the entry) as non-nnbd, it becomes weak mode which // is required because many of the imports are not (yet) nnbd. -export 'unit_test_suites_impl.dart'; +import 'unit_test_suites_impl.dart' as impl; + +/// Work around https://github.com/dart-lang/sdk/issues/45192. +/// +/// TODO(paulberry): once #45192 is fixed, we can switch the `import` directive +/// above to an `export` and remove this method, and this file will still be +/// considered by the analysis server to be runnable. +main(List args) { + impl.main(args); +}