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

Unified Diff: tests/language_2/checked_setter_test.dart

Issue 2999733002: Migrate test block 47 and downstream dependencies to Dart 2.0. (Closed)
Patch Set: Whitespace Created 3 years, 4 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: tests/language_2/checked_setter_test.dart
diff --git a/tests/language/checked_setter_test.dart b/tests/language_2/checked_setter_test.dart
similarity index 66%
rename from tests/language/checked_setter_test.dart
rename to tests/language_2/checked_setter_test.dart
index 6d45d8bc358b157174a2a28607eab59647cabd28..46f35cf711eeae1730d3be303b97a4aa759108a1 100644
--- a/tests/language/checked_setter_test.dart
+++ b/tests/language_2/checked_setter_test.dart
@@ -18,14 +18,5 @@ var array = [new B()];
main() {
array[0].c = new C();
- bool inCheckedMode = false;
- try {
- var i = 42;
- String a = i;
- } catch (e) {
- inCheckedMode = true;
- }
- if (inCheckedMode) {
- Expect.throws(() => array[0].c = new B(), (e) => e is TypeError);
- }
+ array[0].c = new B(); /*@compile-error=unspecified*/
}

Powered by Google App Engine
This is Rietveld 408576698