Files
scriptc/tests/diagnostics/local-class-boundaries.ts
T
2026-10-20 17:56:44 -05:00

11 lines
431 B
TypeScript

function privateBrand() { return class { #value = 1; has(other: object): boolean { return #value in other; } }; }
function selfName() { return class Local { copy() { return new Local(); } }; }
class Base {}
function derived() { return class extends Base {}; }
function generic() { return class { read<T>(value: T): T { return value; } }; }
privateBrand();
selfName();
derived();
generic();
// End of unsupported local-class forms.