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

Unified Diff: tests/language/range_analysis3_test.dart

Issue 1504333005: Change confuse() for range_analysis3_test to return non-null int (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/range_analysis3_test.dart
diff --git a/tests/language/range_analysis3_test.dart b/tests/language/range_analysis3_test.dart
index c38e8b87365fcbf2ab319e0aa581cb286175d5f3..8777212aba0c0718f6e8b615edc79d2807bdc195 100644
--- a/tests/language/range_analysis3_test.dart
+++ b/tests/language/range_analysis3_test.dart
@@ -4,8 +4,9 @@
import "package:expect/expect.dart";
-@NoInline() @AssumeDynamic()
-confuse(x) => x;
+@NoInline()
+@AssumeDynamic()
+confuse(x) => x is int ? x : 0;
test1() {
int x = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698