28 lines
620 B
Plaintext
28 lines
620 B
Plaintext
=== tests/cases/compiler/collisionRestParameterUnderscoreIUsage.ts ===
|
|
declare var console: { log(msg?: string): void; };
|
|
>console : { log(msg?: string): void; }
|
|
>log : (msg?: string) => void
|
|
>msg : string
|
|
|
|
var _i = "This is what I'd expect to see";
|
|
>_i : string
|
|
|
|
class Foo {
|
|
>Foo : Foo
|
|
|
|
constructor(...args: any[]) {
|
|
>args : any[]
|
|
|
|
console.log(_i); // This should result in error
|
|
>console.log(_i) : void
|
|
>console.log : (msg?: string) => void
|
|
>console : { log(msg?: string): void; }
|
|
>log : (msg?: string) => void
|
|
>_i : string
|
|
}
|
|
}
|
|
new Foo();
|
|
>new Foo() : Foo
|
|
>Foo : typeof Foo
|
|
|