41 lines
725 B
Text
41 lines
725 B
Text
=== tests/cases/compiler/letConstMatchingParameterNames.ts ===
|
|
let parent = true;
|
|
>parent : boolean
|
|
>true : boolean
|
|
|
|
const parent2 = true;
|
|
>parent2 : boolean
|
|
>true : boolean
|
|
|
|
declare function use(a: any);
|
|
>use : (a: any) => any
|
|
>a : any
|
|
|
|
function a() {
|
|
>a : () => void
|
|
|
|
let parent = 1;
|
|
>parent : number
|
|
>1 : number
|
|
|
|
const parent2 = 2;
|
|
>parent2 : number
|
|
>2 : number
|
|
|
|
function b(parent: string, parent2: number) {
|
|
>b : (parent: string, parent2: number) => void
|
|
>parent : string
|
|
>parent2 : number
|
|
|
|
use(parent);
|
|
>use(parent) : any
|
|
>use : (a: any) => any
|
|
>parent : string
|
|
|
|
use(parent2);
|
|
>use(parent2) : any
|
|
>use : (a: any) => any
|
|
>parent2 : number
|
|
}
|
|
}
|
|
|