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
Facade callback userdata: .Some(x) is "cannot infer the enum type" where Some(x) works #1765
Actual:error: cannot infer the enum type for .Some``. Some(Ctx { .. }) and `Option[&Ctx].Some(..)` work.
Cause:Sema.facade_prepare_callback_call checks the userdata argument with no expected type, because U is bound from that argument; a shorthand needs the expected enum. The parameter's shape is known before U is (Option[&U] for a nullable callback), so the shorthand could be checked against Option[_] and bind U from its payload.
Expected:.Some(x) is Some(x) here, as it is anywhere an Option is expected.
Activity
Facade callback userdata: `.Some(x)` is `Some(x)` (#1765)
C backend and modeled-C fixes: map loops, generic structs, view compa…