Dynamic type error implies checked mode.

R=karlklose@google.com

Review-Url: https://codereview.chromium.org/2641833002 .
This commit is contained in:
Peter von der Ahé 2017-01-18 16:26:12 +01:00
parent 4570f34bc1
commit 011f616a58

View file

@ -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);
}