Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouv committed Nov 26, 2024
1 parent 76391e9 commit 2a85e7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenIterators.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4808,6 +4808,9 @@ .maxstack 2
System.Console.Write(object.ReferenceEquals(enumerable, enumerable.GetEnumerator()));
}
enumerator.Dispose();
System.Console.Write(object.ReferenceEquals(enumerable, enumerable.GetEnumerator()));
class C
{
public static System.Collections.Generic.IEnumerable<int> Produce()
Expand All @@ -4819,7 +4822,7 @@ public static System.Collections.Generic.IEnumerable<int> Produce()
""";
// We're not setting the state to "after"/"finished"
// Tracked by https://github.com/dotnet/roslyn/issues/76089
CompileAndVerify(src2, expectedOutput: "TrueTrueFalse").VerifyDiagnostics();
CompileAndVerify(src2, expectedOutput: "TrueTrueFalseTrue").VerifyDiagnostics();
}

[Fact, WorkItem("https://github.com/dotnet/roslyn/issues/76078")]
Expand Down

0 comments on commit 2a85e7f

Please sign in to comment.