Type clash after 2.16.0 upgrade (breaking change in drift_dev) #2919
Labels
bug
Something isn't working
generator
Affects the generator
package-drift_dev
Affects the drift_dev package
After upgrading to 2.16.0 I get the following breaking change in the generated database.g.dart:
It's working (chooses the right
Message
type) up to 2.15.0 and I suspect 261c151 to be the breaking change.My database.dart looks like:
and tables.dart:
The following workaround resolves the issue (import with alias, move to top):
It looks like types from an alias import is given precedence and imports are order dependent now when generating code.
The fix introduced for #2904 did not resolve this issue (as this is not
dart:
vspackage:
related).The text was updated successfully, but these errors were encountered: