nullishCoalescingOperator7.ts(6,19): error TS2872: This kind of expression is always truthy.
nullishCoalescingOperator7.ts(7,19): error TS2872: This kind of expression is always truthy.
nullishCoalescingOperator7.ts(10,23): error TS2872: This kind of expression is always truthy.


==== nullishCoalescingOperator7.ts (3 errors) ====
    declare const a: string | undefined;
    declare const b: string | undefined;
    declare const c: string | undefined;
    
    const foo1 = a ? 1 : 2;
    const foo2 = a ?? 'foo' ? 1 : 2;
                      ~~~~~
!!! error TS2872: This kind of expression is always truthy.
    const foo3 = a ?? 'foo' ? (b ?? 'bar') : (c ?? 'baz');
                      ~~~~~
!!! error TS2872: This kind of expression is always truthy.
    
    function f () {
        const foo4 = a ?? 'foo' ? b ?? 'bar' : c ?? 'baz';
                          ~~~~~
!!! error TS2872: This kind of expression is always truthy.
    }
    