2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/classMemberInitializerWithLamdaScoping5.ts ===
|
|
|
|
declare var console: {
|
|
|
|
>console : { log(message?: any, ...optionalParams: any[]): void; }
|
|
|
|
|
|
|
|
log(message?: any, ...optionalParams: any[]): void;
|
|
|
|
>log : (message?: any, ...optionalParams: any[]) => void
|
|
|
|
>message : any
|
|
|
|
>optionalParams : any[]
|
|
|
|
|
|
|
|
};
|
|
|
|
class Greeter {
|
|
|
|
>Greeter : Greeter
|
|
|
|
|
|
|
|
constructor(message: string) {
|
|
|
|
>message : string
|
|
|
|
}
|
|
|
|
|
|
|
|
messageHandler = (message: string) => {
|
|
|
|
>messageHandler : (message: string) => void
|
2014-08-22 03:39:46 +02:00
|
|
|
>(message: string) => { console.log(message); // This shouldnt be error } : (message: string) => void
|
2014-08-15 23:33:16 +02:00
|
|
|
>message : string
|
|
|
|
|
|
|
|
console.log(message); // This shouldnt be error
|
|
|
|
>console.log(message) : void
|
|
|
|
>console.log : (message?: any, ...optionalParams: any[]) => void
|
|
|
|
>console : { log(message?: any, ...optionalParams: any[]): void; }
|
|
|
|
>log : (message?: any, ...optionalParams: any[]) => void
|
|
|
|
>message : string
|
|
|
|
}
|
|
|
|
}
|