Files
tsgo/testdata/baselines/reference/compiler/negatedUnicodeSetUnionMayContainStrings.errors.txt
48f583496e Report TS1518 for all negated Unicode-set union operands (#4832)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: RyanCavanaugh <[email protected]>
2026-08-14 19:47:32 +00:00

16 lines
1.1 KiB
Plaintext

negatedUnicodeSetUnionMayContainStrings.ts(1,14): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class.
negatedUnicodeSetUnionMayContainStrings.ts(2,15): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class.
negatedUnicodeSetUnionMayContainStrings.ts(3,14): error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class.
==== negatedUnicodeSetUnionMayContainStrings.ts (3 errors) ====
const a = /[^\q{xy}b]/v;
~~~~~~
!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class.
const b = /[^b\q{xy}]/v;
~~~~~~
!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class.
const c = /[^[b\q{xy}c]]/v;
~~~~~~~~~~
!!! error TS1518: Anything that would possibly match more than a single character is invalid inside a negated character class.