You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah this would be very easy if the function is known to be pure. Unfortunately if the function is impure the same mistake can be made :( If there were more type information (static analysis) available, there could be a lint that warns when e.g. a function returns a map but isn't being merged.
Good point, checking the type would probably be better. This seems like a relatively lightweight check, some lints like this could probably be turned on by default (without specifically enabling linting)
I just spent some time debugging a simple case where I meant to write
^func args
and instead hadfunc args
The text was updated successfully, but these errors were encountered: