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

Unified Diff: lib/src/testing.dart

Issue 1010893004: Allow S->T <: dynamic->T (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Add comment Created 5 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
Index: lib/src/testing.dart
diff --git a/lib/src/testing.dart b/lib/src/testing.dart
index 51a7bed068ef7707eec459678e6464c871837cbf..a1a417ffa29fa47ee0ba0b4c5a03a66e8a49990f 100644
--- a/lib/src/testing.dart
+++ b/lib/src/testing.dart
@@ -149,8 +149,9 @@ class TestReporter extends SummaryReporter {
void log(Message info) {
super.log(info);
- if (info is! StaticInfo) return;
- infoMap[_current].putIfAbsent(info.node, () => []).add(info);
+ if (info is StaticInfo) {
+ infoMap[_current].putIfAbsent(info.node, () => []).add(info);
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698