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. |