swc/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator9.ts

7 lines
163 B
TypeScript

// @strict: true
declare let f: null | ((x: string) => void);
let g = f || (abc => { void abc.toLowerCase() })
let gg = f ?? (abc => { void abc.toLowerCase() })