mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-23 06:10:02 +08:00
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.
9 lines
160 B
TypeScript
9 lines
160 B
TypeScript
export class Crate {
|
|
readonly label: string;
|
|
contents: unknown;
|
|
constructor(label: string) {
|
|
this.label = label;
|
|
this.contents = undefined;
|
|
}
|
|
}
|