summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/shared/System/ByReference.cs
diff options
context:
space:
mode:
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>2018-12-23 17:09:39 +0100
committerJan Kotas <jkotas@microsoft.com>2018-12-23 15:47:48 -0800
commit14d6b0258852dd7354bc349d7566dc5337905ac9 (patch)
tree1255dee1134e5c5531ccb9fbd992b992e53ee6ea /src/System.Private.CoreLib/shared/System/ByReference.cs
parent228654b769dcd195fcb70161f1cb109ffa935fdd (diff)
downloadcoreclr-14d6b0258852dd7354bc349d7566dc5337905ac9.tar.gz
coreclr-14d6b0258852dd7354bc349d7566dc5337905ac9.tar.bz2
coreclr-14d6b0258852dd7354bc349d7566dc5337905ac9.zip
Fix ProjectN regression in `ByReference<T>` (dotnet/corert#6713)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/ByReference.cs')
-rw-r--r--src/System.Private.CoreLib/shared/System/ByReference.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/shared/System/ByReference.cs b/src/System.Private.CoreLib/shared/System/ByReference.cs
index 492979a2d7..5da3c99f41 100644
--- a/src/System.Private.CoreLib/shared/System/ByReference.cs
+++ b/src/System.Private.CoreLib/shared/System/ByReference.cs
@@ -11,7 +11,11 @@ namespace System
// around lack of first class support for byref fields in C# and IL. The JIT and
// type loader has special handling for it that turns it into a thin wrapper around ref T.
[NonVersionable]
- internal readonly ref struct ByReference<T>
+ internal
+#if !PROJECTN // readonly breaks codegen contract and asserts UTC
+ readonly
+#endif
+ ref struct ByReference<T>
{
// CS0169: The private field '{blah}' is never used
#pragma warning disable 169