Null aware test fixed
diff --git a/LanguageFeatures/nnbd/null_aware_operator_A13_t13.dart b/LanguageFeatures/nnbd/null_aware_operator_A13_t13.dart
index 115dda2..558d1d7 100644
--- a/LanguageFeatures/nnbd/null_aware_operator_A13_t13.dart
+++ b/LanguageFeatures/nnbd/null_aware_operator_A13_t13.dart
@@ -21,10 +21,17 @@
class C {
List<int>? _list = [3, 1, 4];
- int operator [](int index) => _list != null ? _list[index] : -1;
+ int operator [](int index) {
+ List<int>? list = _list;
+ if (list != null) {
+ return list[index];
+ }
+ return -1;
+ }
void operator []=(int index, dynamic value) {
- if (_list != null) {
- _list[index] = value;
+ List<int>? list = _list;
+ if (list != null) {
+ list[index] = value;
}
}