Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Unified Diff: pkg/analyzer/test/generated/non_error_resolver_test.dart

Issue 2815713003: Issue 29109. Resynthesize PrefixElement(s) to fix constants evaluation. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/generated/non_error_resolver_test.dart
diff --git a/pkg/analyzer/test/generated/non_error_resolver_test.dart b/pkg/analyzer/test/generated/non_error_resolver_test.dart
index e516d5d9e6566804a721d3f7c97e68b52e33dc24..8392f69dc190c39864802fbe43ac34c0a1a28cdb 100644
--- a/pkg/analyzer/test/generated/non_error_resolver_test.dart
+++ b/pkg/analyzer/test/generated/non_error_resolver_test.dart
@@ -1311,6 +1311,32 @@ const Type d = dynamic;
verify([source]);
}
+ test_const_imported_defaultParameterValue_withImportPrefix() async {
+ resetWith(options: new AnalysisOptionsImpl()..strongMode = true);
+ Source source = addNamedSource(
+ "/a.dart",
+ r'''
+import 'b.dart';
+const b = const B();
+''');
+ addNamedSource(
+ "/b.dart",
+ r'''
+import 'c.dart' as ccc;
+class B {
+ const B([p = ccc.value]);
+}
+''');
+ addNamedSource(
+ "/c.dart",
+ r'''
+const int value = 12345;
+''');
+ await computeAnalysisResult(source);
+ assertNoErrors(source);
+ verify([source]);
+ }
+
test_constConstructorWithNonConstSuper_explicit() async {
Source source = addSource(r'''
class A {

Powered by Google App Engine
This is Rietveld 408576698