error CS8374: Cannot ref-assign 'x!' to 'x' because 'x!' has a narrower escape scope than 'x'. #31297
Labels
4 - In Review
A fix for the issue is submitted for review.
Area-Compilers
Bug
New Language Feature - Nullable Reference Types
Nullable Reference Types
Milestone
Version Used:
Branch C# 8.0: Nullable reference type (29 Oct 2018)
https://github.com/dotnet/csharplang/blob/master/proposals/nullable-reference-types.md
Latest commit 2f8fef by AlekseyTs:
Compare Nullable modifiers while comparing type symbols by default. (#30770)
Steps to Reproduce:
https://sharplab.io/#v2:EYLgZgpghgLgrgJwgZwLQDk4BstWFiAJQkiQDsBjCAFQE8AHFAHwAEAmAAgGEBYAKADe/DiI4sALBwCyACgCUw0UL6jVHJGA4A3KAg4APDgF51JDphx4CxMPIDcitQeOnN+gIQOVTjo7UB6fw4ASzIYCCRkGFCAcyxaDggyAHs4GIALDhh04OQOZLIIDgB3ZIQAa2Q/VQ1tXQ4Ek1qLXHwiEnlPatFG1wau7xEAXz8/CH1whDI+lgBGAAYAfnNsVusOuS8hoA===
Expected Behavior:
No errors
Actual Behavior:
error CS8374: Cannot ref-assign 'x!' to 'x' because 'x!' has a narrower escape scope than 'x'.
[jcouv update:] I've tagged some code with this issue (
CheckValueKind
,GetValEscape
,CheckValEscape
). Please search for them when resolving this issue.The text was updated successfully, but these errors were encountered: