Skip to content

Commit

Permalink
Add test demonstrating issue no longer repros
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi committed Feb 12, 2025
1 parent 3f2e5e2 commit b2d1732
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,24 @@ Stack<T> GetNumbers<T>(T[] values)
ReferenceAssemblies = ReferenceAssemblies.Net.Net80,
}.RunAsync();
}

[Fact, WorkItem("https://github.com/dotnet/roslyn/issues/77177")]
public async Task TestNotOnQueue()
{
await new VerifyCS.Test
{
TestCode = """
using System.Linq;
using System.Collections.Generic;
using System.Collections.Immutable;
class Container(IEnumerable<long> items)
{
public Queue<long> Items { get; } = new(items);
}
""",
LanguageVersion = LanguageVersion.CSharp12,
ReferenceAssemblies = ReferenceAssemblies.Net.Net80,
}.RunAsync();
}
}

0 comments on commit b2d1732

Please sign in to comment.