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

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

Issue 2856463004: New tests and improvements for generics in comments parsing. (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/strong_mode_test.dart
diff --git a/pkg/analyzer/test/generated/strong_mode_test.dart b/pkg/analyzer/test/generated/strong_mode_test.dart
index f0b5a308094c54ebe188d39f1edb475c202f87a7..8c40b88f872c0a59d484b7f62b5d1462cf3026bb 100644
--- a/pkg/analyzer/test/generated/strong_mode_test.dart
+++ b/pkg/analyzer/test/generated/strong_mode_test.dart
@@ -1503,8 +1503,7 @@ num test(Iterable values) => values.fold(values.first as num, max);
A<int, String> a3 = new F.named(3, "hello");
A<int, String> a4 = new F.named(3, "hello", "hello", 3);
A<int, String> a5 = new F.named(3, "hello", "hello");
- }
- }''';
+ }''';
CompilationUnit unit = await resolveSource(code);
Expression rhs(VariableDeclarationStatement stmt) {
@@ -1867,7 +1866,7 @@ num test(Iterable values) => values.fold(values.first as num, max);
String code = r'''
class A {
List<String> m0(int x) => ["hello"];
- List<String> m1(int x) {return [3];};
+ List<String> m1(int x) {return [3];}
}
''';
CompilationUnit unit = await resolveSource(code);
@@ -2277,7 +2276,7 @@ num test(Iterable values) => values.fold(values.first as num, max);
test_superConstructorInvocation_propagation() async {
String code = r'''
class B {
- B(List<String>);
+ B(List<String> p);
}
class A extends B {
A() : super([]);

Powered by Google App Engine
This is Rietveld 408576698