Skip to content

Commit

Permalink
Add safety fallback for new types being added
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed May 10, 2023
1 parent 45dc099 commit 052abfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drift_dev/lib/src/analysis/results/dart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ class _AddFromDartType {
visitTypeParameterType(type);
} else if (type is VoidType) {
visitVoidType(type);
} else {
_builder.addText(
'/* unknown type ${type.getDisplayString(withNullability: true)} */');
}
}

Expand Down

0 comments on commit 052abfb

Please sign in to comment.