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

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

Issue 959003003: Typecheck constructor initializers properly (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 years, 10 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 | « test/dart_codegen/expect/convert/utf.dart ('k') | test/dart_codegen/expect/core/exceptions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/core/errors.dart
diff --git a/test/dart_codegen/expect/core/errors.dart b/test/dart_codegen/expect/core/errors.dart
index 00c2740ea4c1336abbde85e8b6b021aff6a7755b..8b1d1418a6ca39fb951707b54873feef02955a0e 100644
--- a/test/dart_codegen/expect/core/errors.dart
+++ b/test/dart_codegen/expect/core/errors.dart
@@ -69,7 +69,7 @@ if (endName == null) endName = "end";
}
}
static void checkNotNegative(int value, [String name, String message]) {
-if (value < 0) throw new RangeError.range(value, 0, null, name, message);
+if (value < 0) throw new RangeError.range(value, 0, ((__x3) => DDC$RT.cast(__x3, Null, int, "CastLiteral", """line 320, column 57 of dart:core/errors.dart: """, __x3 is int, true))(null), name, message);
}
String toString() {
if (!_hasValue) return "RangeError: $message";
@@ -97,7 +97,7 @@ explanation = ": Only valid value is $start";
}
class IndexError extends ArgumentError implements RangeError {final indexable;
final int length;
- IndexError(int invalidValue, indexable, [String name, String message, int length]) : this.indexable = indexable, this.length = (length != null) ? length : indexable.length, super.value(invalidValue, name, (message != null) ? message : "Index out of range");
+ IndexError(int invalidValue, indexable, [String name, String message, int length]) : this.indexable = indexable, this.length = ((__x4) => DDC$RT.cast(__x4, dynamic, int, "CastGeneral", """line 371, column 23 of dart:core/errors.dart: """, __x4 is int, true))((length != null) ? length : indexable.length), super.value(invalidValue, name, (message != null) ? message : "Index out of range");
int get start => 0;
int get end => length - 1;
String toString() {
« no previous file with comments | « test/dart_codegen/expect/convert/utf.dart ('k') | test/dart_codegen/expect/core/exceptions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698