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

Unified Diff: pkg/testing/lib/src/multitest.dart

Issue 2641833002: Dynamic type error implies checked mode. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/testing/lib/src/multitest.dart
diff --git a/pkg/testing/lib/src/multitest.dart b/pkg/testing/lib/src/multitest.dart
index 1efbabe71384cc87b2ba3dc715d1ebb2ce5f396a..5d4d1232071fa8aaf9971e867ea7be9373d2b8a0 100644
--- a/pkg/testing/lib/src/multitest.dart
+++ b/pkg/testing/lib/src/multitest.dart
@@ -21,12 +21,12 @@ import 'test_description.dart' show
bool isError(Set<String> expectations) {
if (expectations.contains("compile-time error")) return true;
if (expectations.contains("runtime error")) return true;
- if (expectations.contains("dynamic type error")) return true;
return false;
}
bool isCheckedModeError(Set<String> expectations) {
if (expectations.contains("checked mode compile-time error")) return true;
+ if (expectations.contains("dynamic type error")) return true;
return isError(expectations);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698