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
{{ message }}
Repository navigation
Destructuring an existential with let reports "this switch" #9069
This has type: $Any_'a
But this switch is expected to return: 'a
The type constructor $Any_'a would escape its scope
All branches in a switch must return the same type.
To fix this, change your branch to return the expected type.
The let is checked as a match internally, but the hint about switch branches doesn't apply here. (See also the $Any_'a naming in the related issue.)
Activity
Type a let destructuring a GADT without switch diagnostics