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
As F* allows type ascription patterns only on variables, my first attempt is to remove the type ascription (and keep only the underlying pattern) except when the underlying pattern is a binding pattern.
However what I understand from the Rust doc on patterns an this canceled feature is that type ascription patterns in Rust are allowed only in let bindings so I think we could actually completely ignore them in the F* backend (even when they wrap a binding pattern) but both solutions are probably fine.
Open this code snippet in the playground
The generated F* for the
test
method from the example is:F* rejects it with
Type ascriptions within patterns are only allowed on variables
The text was updated successfully, but these errors were encountered: