source_gen
source_gen copied to clipboard
TypeChecker.isAssignableFromType does not consider nullability
I would expect TypeChecker.isAssignableFromType(staticType) to take the nullability of the types into account. It returns true incorrectly if the TypeChecker type is not nullable but staticType is nullable.
Dart SDK version: 2.16.1
Is this the TypeChecker from package:source_gen? (If so, the issue would fit better in https://github.com/dart-lang/source_gen/issues).
@lrhn yes, sorry! Should I close here and reopen or can you move the issue?
Turns out I can, so moved!