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

Unified Diff: test/dart_codegen/expect/core/exceptions.dart

Issue 1137543005: Type check binary expressions (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase and remove assert Created 5 years, 7 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
« lib/runtime/dart/_interceptors.js ('K') | « test/codegen/fieldtest.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/core/exceptions.dart
diff --git a/test/dart_codegen/expect/core/exceptions.dart b/test/dart_codegen/expect/core/exceptions.dart
index 16ee85150c08562a533375b640ccce53189bfc54..f13894cd2e61f95eb97b5753cdf95e8caac8210e 100644
--- a/test/dart_codegen/expect/core/exceptions.dart
+++ b/test/dart_codegen/expect/core/exceptions.dart
@@ -24,7 +24,7 @@ if (offset != -1) {
}
return report;
}
- if (offset != -1 && (offset < 0 || offset > source.length)) {
+ if (offset != -1 && (offset < 0 || offset > DEVC$RT.cast(source.length, dynamic, num, "DynamicCast", """line 108, column 49 of dart:core/exceptions.dart: """, source.length is num, true))) {
offset = -1;
}
if (offset == -1) {
@@ -59,7 +59,7 @@ report += " (at line $lineNum, character ${offset - lineStart + 1})\n";
report += " (at character ${offset + 1})\n";
}
int lineEnd = DEVC$RT.cast(source.length, dynamic, int, "DynamicCast", """line 141, column 19 of dart:core/exceptions.dart: """, source.length is int, true);
- for (int i = offset; i < source.length; i++) {
+ for (int i = offset; i < DEVC$RT.cast(source.length, dynamic, num, "DynamicCast", """line 142, column 30 of dart:core/exceptions.dart: """, source.length is num, true); i++) {
int char = ((__x5) => DEVC$RT.cast(__x5, dynamic, int, "DynamicCast", """line 143, column 18 of dart:core/exceptions.dart: """, __x5 is int, true))(source.codeUnitAt(i));
if (char == 0x0a || char == 0x0d) {
lineEnd = i;
« lib/runtime/dart/_interceptors.js ('K') | « test/codegen/fieldtest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698