We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
The following fragment, which uses the static initialization of s, marks D unused today:
s
D
function sideAffecting(): number { console.log("called"); return 10; } function foo() { class D { static s: number = sideAffecting(); } } foo();
Initially mentioned in #16078 but this is a separate issue.
The following fragment, which uses the static initialization of
s, marksDunused today:Initially mentioned in #16078 but this is a separate issue.