Files
tsgo/testdata/baselines/reference/compiler/negatedUnicodeSetUnionMayContainStrings.symbols
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

13 lines
434 B
Plaintext

//// [tests/cases/compiler/negatedUnicodeSetUnionMayContainStrings.ts] ////
=== negatedUnicodeSetUnionMayContainStrings.ts ===
const a = /[^\q{xy}b]/v;
>a : Symbol(a, Decl(negatedUnicodeSetUnionMayContainStrings.ts, 0, 5))
const b = /[^b\q{xy}]/v;
>b : Symbol(b, Decl(negatedUnicodeSetUnionMayContainStrings.ts, 1, 5))
const c = /[^[b\q{xy}c]]/v;
>c : Symbol(c, Decl(negatedUnicodeSetUnionMayContainStrings.ts, 2, 5))