-
Couldn't load subscription status.
- Fork 5.2k
Closed
Closed
Copy link
Description
Description
visual studio 2026 Insiders given an error No such label 'LazyLoopBacktrack' within the scope of the goto statement for generated regex (?<=(abc)+?123)a and xxx(?<=(abc)+?123)a.
But work normally for generated regex (?<=(abc)+?123) and (?<=(abc)+?)a.
Reproduction Steps
internal partial class RegexTester
{
[GeneratedRegex(@"(?<=(abc)+?123)a")]
internal static partial Regex regexTestGenerate();
}Expected behavior
Generate executable code.
Actual behavior
No such label 'LazyLoopBacktrack' within the scope of the goto statement.
Because in the source generated code, the LazyLoopBacktrack: and goto LazyLoopBacktrack; are separated by two layers of curly braces
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
Copilot