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

14 lines
359 B
TypeScript

//// [tests/cases/compiler/negatedUnicodeSetUnionMayContainStrings.ts] ////
//// [negatedUnicodeSetUnionMayContainStrings.ts]
const a = /[^\q{xy}b]/v;
const b = /[^b\q{xy}]/v;
const c = /[^[b\q{xy}c]]/v;
//// [negatedUnicodeSetUnionMayContainStrings.js]
"use strict";
const a = /[^\q{xy}b]/v;
const b = /[^b\q{xy}]/v;
const c = /[^[b\q{xy}c]]/v;