Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit c2334ed

Browse files
committed
Fix uapaot build issues for System.Runtime
baseline readonly struct issue
1 parent a822fbf commit c2334ed

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/System.Runtime/ref/System.Runtime.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6547,7 +6547,9 @@ public RuntimeCompatibilityAttribute() { }
65476547
}
65486548
public static partial class RuntimeFeature
65496549
{
6550+
#if FEATURE_DEFAULT_INTERFACES
65506551
public const string DefaultImplementationsOfInterfaces = "DefaultImplementationsOfInterfaces";
6552+
#endif
65516553
public static bool IsSupported(string feature) { throw null; }
65526554
}
65536555
public static partial class RuntimeHelpers
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
TypeCannotChangeClassification : Type 'System.TypedReference' is a 'ref struct' in the implementation but is a 'struct' in the contract.
1+
TypeCannotChangeClassification : Type 'System.TypedReference' is a 'ref struct' in the implementation but is a 'struct' in the contract.
2+
TypeCannotChangeClassification : Type 'System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter' is marked as readonly in the contract so it must also be marked readonly in the implementation.

0 commit comments

Comments
 (0)