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

Unified Diff: test/codegen/language/nullaware_opt_test.dart

Issue 2132763002: Fix null aware generic invocation. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Fix null aware generic invoke Created 4 years, 5 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 | « lib/src/compiler/code_generator.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/language/nullaware_opt_test.dart
diff --git a/test/codegen/language/nullaware_opt_test.dart b/test/codegen/language/nullaware_opt_test.dart
index 5446171d775930479cf74f11f49eaf5ff4a7cb35..aae17b79e14ff2841c0cc9818c422c8c53ced770 100644
--- a/test/codegen/language/nullaware_opt_test.dart
+++ b/test/codegen/language/nullaware_opt_test.dart
@@ -32,6 +32,8 @@ test() {
Expect.equals(null, c?.v);
Expect.equals(10, c ?? 10);
Expect.equals(d, d ?? bomb());
+ Expect.equals(3, [[3]]?.expand((i) => i).toList()[0]);
+ Expect.equals(null, (null as List<List<int>>)?.expand((i) => i)?.toList());
var e;
// The assignment to e is not executed since d != null.
« no previous file with comments | « lib/src/compiler/code_generator.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698