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

Unified Diff: pkg/kernel/test/type_propagation_selfcheck.dart

Issue 2561723003: Merge kernel closure conversion into the Dart SDK (Closed)
Patch Set: Remove path constraint Created 4 years 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 | « pkg/kernel/test/type_propagation_dump.dart ('k') | pkg/kernel/test/type_unification_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/test/type_propagation_selfcheck.dart
diff --git a/pkg/kernel/test/type_propagation_selfcheck.dart b/pkg/kernel/test/type_propagation_selfcheck.dart
index f5ce2935241a01e2cfe1676884570d4addc0ff0c..e83e4b7f86f9ac2645901586fca52440384dab4c 100644
--- a/pkg/kernel/test/type_propagation_selfcheck.dart
+++ b/pkg/kernel/test/type_propagation_selfcheck.dart
@@ -155,9 +155,7 @@ class SelfCheckTransformer {
// is allowed to occur. We use this because it is hard to check directly
// that a value is of the 'other' type.
bool disallowOtherValues = expected.valueBits & ValueBit.other == 0;
- List<Expression> anyChecks = disallowOtherValues
- ? <Expression>[]
- : null;
+ List<Expression> anyChecks = disallowOtherValues ? <Expression>[] : null;
void checkType(int bit, DartType type) {
if (expected.valueBits & bit == 0) {
« no previous file with comments | « pkg/kernel/test/type_propagation_dump.dart ('k') | pkg/kernel/test/type_unification_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698