diff --git a/src/libraries/System.Collections.Immutable/ref/System.Collections.Immutable.net9.cs b/src/libraries/System.Collections.Immutable/ref/System.Collections.Immutable.net9.cs index 4cde549aac366..9a22864bd7e24 100644 --- a/src/libraries/System.Collections.Immutable/ref/System.Collections.Immutable.net9.cs +++ b/src/libraries/System.Collections.Immutable/ref/System.Collections.Immutable.net9.cs @@ -22,9 +22,9 @@ public abstract partial class FrozenDictionary } public abstract partial class FrozenSet { - public System.Collections.Frozen.FrozenSet.AlternateLookup GetAlternateLookup() { throw null; } - public bool TryGetAlternateLookup(out System.Collections.Frozen.FrozenSet.AlternateLookup lookup) { throw null; } - public readonly partial struct AlternateLookup + public System.Collections.Frozen.FrozenSet.AlternateLookup GetAlternateLookup() where TAlternate : allows ref struct { throw null; } + public bool TryGetAlternateLookup(out System.Collections.Frozen.FrozenSet.AlternateLookup lookup) where TAlternate : allows ref struct { throw null; } + public readonly partial struct AlternateLookup where TAlternate : allows ref struct { private readonly object _dummy; private readonly int _dummyPrimitive;