mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
8ffb4ef78a
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: RyanCavanaugh <[email protected]> Co-authored-by: Ryan Cavanaugh <[email protected]>
39 lines
2.1 KiB
Plaintext
39 lines
2.1 KiB
Plaintext
regexNamedGroupDuplicateNestedInGroup.ts(2,12): error TS1515: Named capturing groups with the same name must be mutually exclusive to each other.
|
|
regexNamedGroupDuplicateNestedInGroup.ts(5,16): error TS1515: Named capturing groups with the same name must be mutually exclusive to each other.
|
|
regexNamedGroupDuplicateNestedInGroup.ts(8,18): error TS1515: Named capturing groups with the same name must be mutually exclusive to each other.
|
|
regexNamedGroupDuplicateNestedInGroup.ts(11,16): error TS1515: Named capturing groups with the same name must be mutually exclusive to each other.
|
|
regexNamedGroupDuplicateNestedInGroup.ts(14,14): error TS1515: Named capturing groups with the same name must be mutually exclusive to each other.
|
|
|
|
|
|
==== regexNamedGroupDuplicateNestedInGroup.ts (5 errors) ====
|
|
// Duplicate at the top level (already reported prior to this fix).
|
|
/(?<a>x)(?<a>y)/;
|
|
~
|
|
!!! error TS1515: Named capturing groups with the same name must be mutually exclusive to each other.
|
|
|
|
// Earlier definition nested inside a non-capturing group.
|
|
/(?:(?<a>x))(?<a>z)/;
|
|
~
|
|
!!! error TS1515: Named capturing groups with the same name must be mutually exclusive to each other.
|
|
|
|
// Earlier definition nested inside a non-capturing group with alternation.
|
|
/(?:(?<a>x)|y)(?<a>z)/;
|
|
~
|
|
!!! error TS1515: Named capturing groups with the same name must be mutually exclusive to each other.
|
|
|
|
// Earlier definition nested inside a lookahead assertion.
|
|
/(?=(?<a>x))(?<a>z)/;
|
|
~
|
|
!!! error TS1515: Named capturing groups with the same name must be mutually exclusive to each other.
|
|
|
|
// Earlier definition nested inside a capturing group.
|
|
/((?<a>x))(?<a>z)/;
|
|
~
|
|
!!! error TS1515: Named capturing groups with the same name must be mutually exclusive to each other.
|
|
|
|
// Legal: duplicate names in different alternatives of the same disjunction.
|
|
/(?<a>x)|(?<a>y)/;
|
|
|
|
// Legal: duplicate names in different alternatives of a nested disjunction.
|
|
/(?:(?<a>x)|(?<a>y))/;
|
|
|