30 lines
964 B
Text
30 lines
964 B
Text
=== 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
|
|
>(message: string) => { console.log(message); // This shouldnt be error } : (message: string) => void
|
|
>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
|
|
}
|
|
}
|