From 052abfbab2e77ad185856954e4707ed8c4ba517a Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Wed, 10 May 2023 10:18:24 +0200 Subject: [PATCH] Add safety fallback for new types being added --- drift_dev/lib/src/analysis/results/dart.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drift_dev/lib/src/analysis/results/dart.dart b/drift_dev/lib/src/analysis/results/dart.dart index 10473da88..2519bfc61 100644 --- a/drift_dev/lib/src/analysis/results/dart.dart +++ b/drift_dev/lib/src/analysis/results/dart.dart @@ -281,6 +281,9 @@ class _AddFromDartType { visitTypeParameterType(type); } else if (type is VoidType) { visitVoidType(type); + } else { + _builder.addText( + '/* unknown type ${type.getDisplayString(withNullability: true)} */'); } }