From de6521158efa3a250619855d7ec0feaf00c282f6 Mon Sep 17 00:00:00 2001 From: thomashii Date: Sun, 21 Mar 2021 08:56:26 +0800 Subject: [PATCH] Fixed null safety --- packages/combinator/lib/src/combinator/combinator.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/combinator/lib/src/combinator/combinator.dart b/packages/combinator/lib/src/combinator/combinator.dart index 4048d934..10cbaf5d 100644 --- a/packages/combinator/lib/src/combinator/combinator.dart +++ b/packages/combinator/lib/src/combinator/combinator.dart @@ -196,8 +196,8 @@ abstract class Parser { v.isEmpty ? [] : (r.value?[0] == null ? [] : [r.value?[0]]); var out = List.from(preceding); if (r.value?[1] != null) { - (r.value?[1] as List).forEach((element) { - out.add(element); + r.value?[1].forEach((element) { + out.add(element as T); }); } return out;