diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/RefFields.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/RefFields.cs index aff38438b..7bbb377a6 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/RefFields.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/RefFields.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics.CodeAnalysis; namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty { @@ -84,4 +85,18 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty Field3 = ref v; } } + + internal ref struct UnscopedRefStruct + { + private int val; + + [UnscopedRef] + public ref int ByRefProperty => ref val; + + [UnscopedRef] + public ref int ByRefAccess() + { + return ref val; + } + } }