mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
Dynamic type error implies checked mode.
R=karlklose@google.com Review-Url: https://codereview.chromium.org/2641833002 .
This commit is contained in:
parent
4570f34bc1
commit
011f616a58
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue