Index: tests/language_strong/issue13474_test.dart |
diff --git a/tests/language_strong/issue13474_test.dart b/tests/language_strong/issue13474_test.dart |
index f35f5b604d082ef52b04dbe36f0cd605ae7c72e3..61eddf94631ccfb1757d3e95c402ebc38e53b85f 100644 |
--- a/tests/language_strong/issue13474_test.dart |
+++ b/tests/language_strong/issue13474_test.dart |
@@ -7,14 +7,23 @@ import "package:expect/expect.dart"; |
main() { |
var a; |
- Expect.throws(() { true && (a = 5); }, (error) => error is TypeError); |
- Expect.throws(() { (a = 5) && true; }, (error) => error is TypeError); |
- Expect.throws(() { false || (a = 5); }, (error) => error is TypeError); |
- Expect.throws(() { (a = 5) || false; }, (error) => error is TypeError); |
- Expect.throws(() { (a = 5) || true; }, (error) => error is TypeError); |
+ Expect.throws(() { |
+ true && (a = 5); |
+ }, (error) => error is TypeError); |
+ Expect.throws(() { |
+ (a = 5) && true; |
+ }, (error) => error is TypeError); |
+ Expect.throws(() { |
+ false || (a = 5); |
+ }, (error) => error is TypeError); |
+ Expect.throws(() { |
+ (a = 5) || false; |
+ }, (error) => error is TypeError); |
+ Expect.throws(() { |
+ (a = 5) || true; |
+ }, (error) => error is TypeError); |
// No exceptions thrown. |
false && (a = 5); |
true || (a = 5); |
} |
- |