The formatter removes explicit type signatures used for bindings inside patterns #762
Labels
accepting contributions
Issues that are suitable to be worked on by anybody, not just maintainers
bug
Defects, unintended behaviour, etc
compiler
Changes related to the compiler
Please describe the bug
Code such as this:
Is formatted into this:
This isn't desired because in certain cases the type annotations may in fact be necessary (though this is rare), resulting in a semantic difference between the two bits of code.
inko fmt
should be adjusted to retain (but correctly format) any explicit type signatures it finds in binding patterns.Operating system
Fedora
Inko version
main
The text was updated successfully, but these errors were encountered: