mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
aeff766c31
Co-authored-by: Jake Bailey <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]>
23 lines
618 B
TypeScript
23 lines
618 B
TypeScript
// @target: es2018
|
|
|
|
const thing = { nested: { condition: true } };
|
|
|
|
const wat = () =>
|
|
// explanatory comment
|
|
thing?.nested?.condition ? "pass" : "fail";
|
|
|
|
const watInline = () => /* inline explanatory comment */ thing?.nested?.condition ? "pass" : "fail";
|
|
|
|
const watInlineMultiline = () => /* inline
|
|
explanatory comment */ thing?.nested?.condition ? "pass" : "fail";
|
|
|
|
const watInlineThenLeading = () => /* inline explanatory comment */
|
|
// leading explanatory comment
|
|
thing?.nested?.condition ? "pass" : "fail";
|
|
|
|
declare const o: { a?: number[] };
|
|
|
|
export const f = () =>
|
|
// comment
|
|
o.a?.length;
|