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

Unified Diff: tests/language/instanceof_optimized_test.dart

Issue 256623010: Fix types in test. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 | « 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/instanceof_optimized_test.dart
===================================================================
--- tests/language/instanceof_optimized_test.dart (revision 35455)
+++ tests/language/instanceof_optimized_test.dart (working copy)
@@ -10,7 +10,7 @@
bool isInt(x) => x is int;
-bool isIntRes(x) {
+int isIntRes(x) {
if (x is int) {
return 1;
} else {
@@ -19,7 +19,7 @@
}
-bool isNotIntRes(x) {
+int isNotIntRes(x) {
if (x is! int) {
return 1;
} else {
@@ -28,7 +28,7 @@
}
-bool isIfThenElseIntRes(x) {
+int isIfThenElseIntRes(x) {
return x is int ? 1 : 0;
}
@@ -37,7 +37,7 @@
bool isString(x) => x is String;
-bool isStringRes(x) {
+int isStringRes(x) {
if (x is String) {
return 1;
} else {
@@ -46,7 +46,7 @@
}
-bool isNotStringRes(x) {
+int isNotStringRes(x) {
if (x is! String) {
return 1;
} else {
« 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