Bug in byref-return checking: passing local struct address should not be permitted #1401
Labels
Bug
Impact-Medium
(Internal MS Team use only) Describes an issue with moderate impact on existing code.
This is a bug in ref-return safety checking, a missing error for negative test case https://github.com/Microsoft/visualfsharp/pull/1367/files#diff-59ae1d2137d6b7479475f5d1287557d9L13
For most cases of returning byrefs we correctly report an error, e,g
But not for this case:
Repro steps
Compile this code:
Expected behavior
We expect an error to be reported
Actual behavior
No error is reported
The text was updated successfully, but these errors were encountered: