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

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: 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
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 3968a12593ec5d5ab5fd520d13415e5115ad784b..93e9cb77ab50cdf8504e924bc0df4e3ce912eadb 100644
--- a/test/dart_codegen/expect/core/errors.dart
+++ b/test/dart_codegen/expect/core/errors.dart
@@ -98,7 +98,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 = ((__x3) => DDC$RT.cast(__x3, dynamic, int, "CastGeneral", """line 371, column 23 of dart:core/errors.dart: """, __x3 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() {

Powered by Google App Engine
This is Rietveld 408576698