Unable to create a byref-like DU holding a ref type #18512
Labels
Area-Compiler-Checking
Type checking, attributes and all aspects of logic checking
Feature Improvement
Milestone
Please provide a succinct description of the issue.
Try to create a byref-like discriminated union holding a byref type (ex. Span)
Provide the steps required to reproduce the problem:
Expected behavior
No errors
Actual behavior
error FS0418: The byref typed value 'x' cannot be used at this point
Known workarounds
None so far.
Related information
Provide any related information (optional):
The text was updated successfully, but these errors were encountered: