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

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_common.dart

Issue 2735033002: Fix for 'const C.named()' type inference when 'C' is resolved and has type parameters, but 'named' … (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/resynthesize_common.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index c1d72d5cc1f189a0169128e2f97f14a22a75ddff..a69a77165ccfd151df44f25c0e18f447bc42ee3d 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -3669,6 +3669,32 @@ const dynamic V = const p.C.named();
}
}
+ test_const_invokeConstructor_named_unresolved6() {
+ var library = checkLibrary(
+ r'''
+class C<T> {}
+const V = const C.named();
+''',
+ allowErrors: true);
+ if (isStrongMode) {
+ checkElementText(
+ library,
+ r'''
+class C<T> {
+}
+const C<dynamic> V = const C.named();
+''');
+ } else {
+ checkElementText(
+ library,
+ r'''
+class C<T> {
+}
+const dynamic V = const C.named();
+''');
+ }
+ }
+
test_const_invokeConstructor_unnamed() {
var library = checkLibrary(r'''
class C {
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698