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

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

Issue 1121993004: Inference through conditional expressions (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebase 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
« 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 798c310eea90a5822d8840f3e25e85d38136a009..239f5a4bdb6099217fdcbae5da17e10cca980824 100644
--- a/test/dart_codegen/expect/core/errors.dart
+++ b/test/dart_codegen/expect/core/errors.dart
@@ -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 = ((__x3) => DEVC$RT.cast(__x3, dynamic, int, "DynamicCast", """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");
+ IndexError(int invalidValue, indexable, [String name, String message, int length]) : this.indexable = indexable, this.length = (length != null) ? length : DEVC$RT.cast(indexable.length, dynamic, int, "DynamicCast", """line 371, column 51 of dart:core/errors.dart: """, indexable.length is int, true), 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