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

Unified Diff: tests/language/top_level_getter_no_setter2_test.dart

Issue 2770063002: Revert "Format all multitests" (Closed)
Patch Set: Created 3 years, 9 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 | « tests/language/top_level_getter_no_setter1_test.dart ('k') | tests/language/toplevel_collision1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/top_level_getter_no_setter2_test.dart
diff --git a/tests/language/top_level_getter_no_setter2_test.dart b/tests/language/top_level_getter_no_setter2_test.dart
index ad8375271dce240683ef97302d07aa79adff55d9..0bc1406a2432a67c88e3eb22d606dd74b062e5ec 100644
--- a/tests/language/top_level_getter_no_setter2_test.dart
+++ b/tests/language/top_level_getter_no_setter2_test.dart
@@ -6,15 +6,16 @@ import 'package:expect/expect.dart';
bool getter_visited = false;
-final int getter = () {
+final int getter = (){
getter_visited = true;
}();
class Class {
+
method() {
try {
getter++; //# 01: static type warning
- } on NoSuchMethodError catch (e) {
+ } on NoSuchMethodError catch(e) {
Expect.isTrue(getter_visited); //# 01: continued
return;
}
@@ -24,4 +25,4 @@ class Class {
main() {
new Class().method();
-}
+}
« no previous file with comments | « tests/language/top_level_getter_no_setter1_test.dart ('k') | tests/language/toplevel_collision1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698