Skip to content

Fix incomplete migration of TopLevelStatement tests to VerifyCS pattern#83085

Merged
333fred merged 1 commit intodotnet:mainfrom
jjonescz:broken-main
Apr 7, 2026
Merged

Fix incomplete migration of TopLevelStatement tests to VerifyCS pattern#83085
333fred merged 1 commit intodotnet:mainfrom
jjonescz:broken-main

Conversation

@jjonescz
Copy link
Copy Markdown
Member

@jjonescz jjonescz commented Apr 7, 2026

The Split-if TopLevelStatement tests were still calling TestInRegularAndScriptAsync after the base class was removed in #82892.

Microsoft Reviewers: Open in CodeFlow

{
}
else
if (b)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is surprising behavior. i would not expect these to ever be on different lines.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like that's pre-existing behavior. The previous test was testing script parsing mode only though. Fixed.

@jjonescz jjonescz marked this pull request as draft April 7, 2026 15:01
The Split-if TopLevelStatement tests were still calling
TestInRegularAndScriptAsync after the base class was removed in dotnet#82892.
Convert them to use VerifyCS.Test with OutputKind.ConsoleApplication
and LanguageVersion.CSharp9 to match the top-level statement scenario.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jjonescz jjonescz marked this pull request as ready for review April 7, 2026 15:16
@jjonescz jjonescz enabled auto-merge (squash) April 7, 2026 16:24
@333fred 333fred disabled auto-merge April 7, 2026 16:57
@333fred 333fred merged commit 205b3e8 into dotnet:main Apr 7, 2026
7 of 16 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Apr 7, 2026
@jjonescz jjonescz deleted the broken-main branch April 7, 2026 17:03
@333fred
Copy link
Copy Markdown
Member

333fred commented Apr 7, 2026

Bypassed requirements to unblock main builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants