mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
864 B
TypeScript
24 lines
864 B
TypeScript
//// [tests/cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration2.ts] ////
|
|
|
|
//// [duplicateIdentifierBindingElementInParameterDeclaration2.ts]
|
|
"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
|
|
|
|
//// [duplicateIdentifierBindingElementInParameterDeclaration2.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
|