Tomas Grosup
Tomas Grosup
Thanks @brianrourkeboll , @edgarfgp . Last step for this "chapter" would be to also apply it in this very codebase (assuming there is at least 1 occurrence that needs fixing),...
@edgarfgp good, I was afraid there might be more :).
Yes it is about `?x`, and the (not handled) case of `if callerArg.IsExplicitOptional then`
To assess the impact, is there a library/framework/other_compiler making use of non-Exception throws practically? I would not change the codegen, but `RuntimeCompatibility(WrapNonExceptionThrows = true)` could be considered if this happens...
Another way of addressing this would be a compiler-intrinsic active pattern binding a plain `obj` ;; and the compiler would be aware of it and not emit the `castclass`. Application...
This is a bug, the documentation says the handler's input must be `exn`: ``` |`TryWith`|`Delayed) -> M
`#exn` as a check will be okay. It just has to be done careful w.r.t to buiders which just delegate to a call, that style of coding a CE must...
One way to do it would be to raise an error if this isn't met. Other would be like you say - inferring it automatically for the member just like...
@baronfel : Can I ask for your feedback/review here, too? Can this affect any direct package consumers (and if positively, should we publish that info?)
/backport to main