Files
scriptc/tests/diagnostics/deferred-class-binding/main.ts
T
Chris Tate f992727487 Report a rejected declaration's own diagnostic when a discarded probe flushed it first
Deferred collection diagnostics now stay attached to their declaration until a
copy reaches the final report, so a discarded probe buffer or a successful
nested collection can no longer drop them. Uses of a binding whose type names
a rejected class report that class's diagnostic before the inherited-blocker
cascade.
2026-10-09 23:07:57 -05:00

6 lines
128 B
TypeScript

import { Crate } from "./crate.ts";
const pack = (label: string) => new Crate(label);
console.log(pack("spare parts").label);