dart-lang / source_gen

Automatic source code generation for Dart
https://pub.dev/packages/source_gen
BSD 3-Clause "New" or "Revised" License
484 stars 105 forks source link

Prepare for adding InvalidType, make 'TypeChecker.isAssignableFromType()' null safe. #666

Closed scheglov closed 1 year ago

scheglov commented 1 year ago

Prepares for landing https://dart-review.googlesource.com/c/sdk/+/300181

I had to make this check in cl/529250286, so I guess there is a type without an element that gets passed, most probably the newly added InvalidType. Anyway, the code was unsafe.

kevmoo commented 1 year ago

@scheglov - I'm hitting it with a record!