2015-03-13 19:52:14 +01:00
|
|
|
=== tests/cases/compiler/letConstMatchingParameterNames.ts ===
|
|
|
|
let parent = true;
|
2015-04-16 01:44:20 +02:00
|
|
|
>parent : boolean
|
2015-04-13 21:36:11 +02:00
|
|
|
>true : boolean
|
2015-03-13 19:52:14 +01:00
|
|
|
|
|
|
|
const parent2 = true;
|
2015-04-16 01:44:20 +02:00
|
|
|
>parent2 : boolean
|
2015-04-13 21:36:11 +02:00
|
|
|
>true : boolean
|
2015-03-13 19:52:14 +01:00
|
|
|
|
|
|
|
declare function use(a: any);
|
2015-04-16 01:44:20 +02:00
|
|
|
>use : (a: any) => any
|
|
|
|
>a : any
|
2015-03-13 19:52:14 +01:00
|
|
|
|
|
|
|
function a() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>a : () => void
|
2015-03-13 19:52:14 +01:00
|
|
|
|
|
|
|
let parent = 1;
|
2015-04-16 01:44:20 +02:00
|
|
|
>parent : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>1 : number
|
2015-03-13 19:52:14 +01:00
|
|
|
|
|
|
|
const parent2 = 2;
|
2015-04-16 01:44:20 +02:00
|
|
|
>parent2 : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>2 : number
|
2015-03-13 19:52:14 +01:00
|
|
|
|
|
|
|
function b(parent: string, parent2: number) {
|
2015-04-16 01:44:20 +02:00
|
|
|
>b : (parent: string, parent2: number) => void
|
|
|
|
>parent : string
|
|
|
|
>parent2 : number
|
2015-03-13 19:52:14 +01:00
|
|
|
|
|
|
|
use(parent);
|
|
|
|
>use(parent) : any
|
2015-04-16 01:44:20 +02:00
|
|
|
>use : (a: any) => any
|
|
|
|
>parent : string
|
2015-03-13 19:52:14 +01:00
|
|
|
|
|
|
|
use(parent2);
|
|
|
|
>use(parent2) : any
|
2015-04-16 01:44:20 +02:00
|
|
|
>use : (a: any) => any
|
|
|
|
>parent2 : number
|
2015-03-13 19:52:14 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|