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

Unified Diff: test/dart_codegen/expect/collection/set.dart

Issue 977613002: Make int and double nullable by default (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: actually upload changes 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/collection/set.dart
diff --git a/test/dart_codegen/expect/collection/set.dart b/test/dart_codegen/expect/collection/set.dart
index f2aea206962ee2335c4b26c31a3f6bf5202ea53c..076afbcfaf21b09c272e04d435c0d36d53ff0983 100644
--- a/test/dart_codegen/expect/collection/set.dart
+++ b/test/dart_codegen/expect/collection/set.dart
@@ -179,7 +179,7 @@ part of dart.collection;
E lastWhere(bool test(E value), {
E orElse()}
) {
- E result = ((__x49) => DDC$RT.cast(__x49, Null, E, "CastLiteral", """line 244, column 16 of dart:collection/set.dart: """, __x49 is E, false))(null);
+ E result = null;
bool foundMatching = false;
for (E element in this) {
if (test(element)) {
@@ -192,7 +192,7 @@ part of dart.collection;
throw IterableElementError.noElement();
}
E singleWhere(bool test(E value)) {
- E result = ((__x50) => DDC$RT.cast(__x50, Null, E, "CastLiteral", """line 258, column 16 of dart:collection/set.dart: """, __x50 is E, false))(null);
+ E result = null;
bool foundMatching = false;
for (E element in this) {
if (test(element)) {

Powered by Google App Engine
This is Rietveld 408576698