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

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

Issue 2641213002: Issue 28100. In strong mode verify that TypeParameter bound has required type arguments. (Closed)
Patch Set: Created 3 years, 11 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/resolver_test_case.dart
diff --git a/pkg/analyzer/test/generated/resolver_test_case.dart b/pkg/analyzer/test/generated/resolver_test_case.dart
index a57434c293b4978aa86756d5c27914cf94baf8fb..ce6bee732cac6491d67abf2c7329a91b486ae59d 100644
--- a/pkg/analyzer/test/generated/resolver_test_case.dart
+++ b/pkg/analyzer/test/generated/resolver_test_case.dart
@@ -911,11 +911,13 @@ class StaticTypeAnalyzer2TestShared extends ResolverTestCase {
return identifier;
}
- Future<Null> resolveTestUnit(String code) async {
+ Future<Null> resolveTestUnit(String code, {bool noErrors: true}) async {
testCode = code;
testSource = addSource(testCode);
TestAnalysisResult analysisResult = await computeAnalysisResult(testSource);
- assertNoErrors(testSource);
+ if (noErrors) {
+ assertNoErrors(testSource);
+ }
verify([testSource]);
testUnit = analysisResult.unit;
}

Powered by Google App Engine
This is Rietveld 408576698