tests/cases/conformance/expressions/contextualTyping/parenthesizedContexualTyping1.ts(27,32): error TS2695: Left side of comma operator is unused and has no side effects.
tests/cases/conformance/expressions/contextualTyping/parenthesizedContexualTyping1.ts(27,56): error TS2695: Left side of comma operator is unused and has no side effects.
tests/cases/conformance/expressions/contextualTyping/parenthesizedContexualTyping1.ts(28,33): error TS2695: Left side of comma operator is unused and has no side effects.
tests/cases/conformance/expressions/contextualTyping/parenthesizedContexualTyping1.ts(28,57): error TS2695: Left side of comma operator is unused and has no side effects.


==== tests/cases/conformance/expressions/contextualTyping/parenthesizedContexualTyping1.ts (4 errors) ====
    function fun<T>(g: (x: T) => T, x: T): T;
    function fun<T>(g: (x: T) => T, h: (y: T) => T, x: T): T;
    function fun<T>(g: (x: T) => T, x: T): T {
        return g(x);
    }
    
    var a = fun(x => x, 10);
    var b = fun((x => x), 10);
    var c = fun(((x => x)), 10);
    var d = fun((((x => x))), 10);
    
    var e = fun(x => x, x => x, 10);
    var f = fun((x => x), (x => x), 10);
    var g = fun(((x => x)), ((x => x)), 10);
    var h = fun((((x => x))), ((x => x)), 10);
    
    // Ternaries in parens
    var i = fun((Math.random() < 0.5 ? x => x : x => undefined), 10);
    var j = fun((Math.random() < 0.5 ? (x => x) : (x => undefined)), 10);
    var k = fun((Math.random() < 0.5 ? (x => x) : (x => undefined)), x => x, 10);
    var l = fun(((Math.random() < 0.5 ? ((x => x)) : ((x => undefined)))), ((x => x)), 10);
    
    var lambda1: (x: number) => number = x => x;
    var lambda2: (x: number) => number = (x => x);
    
    type ObjType = { x: (p: number) => string; y: (p: string) => number };
    var obj1: ObjType = { x: x => (x, undefined), y: y => (y, undefined) };
                                   ~
!!! error TS2695: Left side of comma operator is unused and has no side effects.
                                                           ~
!!! error TS2695: Left side of comma operator is unused and has no side effects.
    var obj2: ObjType = ({ x: x => (x, undefined), y: y => (y, undefined) });
                                    ~
!!! error TS2695: Left side of comma operator is unused and has no side effects.
                                                            ~
!!! error TS2695: Left side of comma operator is unused and has no side effects.