16 lines
339 B
Text
16 lines
339 B
Text
=== tests/cases/compiler/optionalParamReferencingOtherParams1.ts ===
|
|
function strange(x: number, y = x * 1, z = x + y) {
|
|
>strange : (x: number, y?: number, z?: number) => number
|
|
>x : number
|
|
>y : number
|
|
>x * 1 : number
|
|
>x : number
|
|
>1 : number
|
|
>z : number
|
|
>x + y : number
|
|
>x : number
|
|
>y : number
|
|
|
|
return z;
|
|
>z : number
|
|
}
|