mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
848 B
TypeScript
23 lines
848 B
TypeScript
//// [tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration1.ts] ////
|
|
|
|
//// [duplicateIdentifierBindingElementInParameterDeclaration1.ts]
|
|
function f0(a, [a, [b]], {b}) { }
|
|
function f1([a, a]) { }
|
|
function f2({b}, {b}) { }
|
|
function f3([c,[c],[[c]]]) { }
|
|
function f4({d, d:{d}}) { }
|
|
function f5({e, e: {e}}, {e}, [d,e, [[e]]], ...e) { }
|
|
function f6([f, ...f]) { }
|
|
function f7(a, func = (a) => { return 1 }) { } // not error
|
|
|
|
//// [duplicateIdentifierBindingElementInParameterDeclaration1.js]
|
|
"use strict";
|
|
function f0(a, [a, [b]], { b }) { }
|
|
function f1([a, a]) { }
|
|
function f2({ b }, { b }) { }
|
|
function f3([c, [c], [[c]]]) { }
|
|
function f4({ d, d: { d } }) { }
|
|
function f5({ e, e: { e } }, { e }, [d, e, [[e]]], ...e) { }
|
|
function f6([f, ...f]) { }
|
|
function f7(a, func = (a) => { return 1; }) { } // not error
|