/third_party/typescript/tests/baselines/reference/ |
D | exportedBlockScopedDeclarations.symbols | 29 export let bar1 = bar1; // should be compile error 30 >bar1 : Symbol(bar1, Decl(exportedBlockScopedDeclarations.ts, 10, 10)) 31 >bar1 : Symbol(bar1, Decl(exportedBlockScopedDeclarations.ts, 10, 10)) 36 let bar1 = bar1; // compile error 37 >bar1 : Symbol(bar1, Decl(exportedBlockScopedDeclarations.ts, 12, 5)) 38 >bar1 : Symbol(bar1, Decl(exportedBlockScopedDeclarations.ts, 12, 5)) 43 export let bar1 = bar1; // should be compile error 44 >bar1 : Symbol(bar1, Decl(exportedBlockScopedDeclarations.ts, 15, 12)) 45 >bar1 : Symbol(bar1, Decl(exportedBlockScopedDeclarations.ts, 15, 12))
|
D | exportedBlockScopedDeclarations.js | 12 export let bar1 = bar1; // should be compile error variable 14 let bar1 = bar1; // compile error 17 export let bar1 = bar1; // should be compile error 24 exports.bar1 = exports.bar = void 0; 35 exports.bar1 = exports.bar1; // should be compile error 37 var bar1 = bar1; // compile error 41 NS1.bar1 = NS1.bar1; // should be compile error
|
D | exportedBlockScopedDeclarations.types | 29 export let bar1 = bar1; // should be compile error 30 >bar1 : any 31 >bar1 : any 36 let bar1 = bar1; // compile error 37 >bar1 : any 38 >bar1 : any 43 export let bar1 = bar1; // should be compile error 44 >bar1 : any 45 >bar1 : any
|
D | callOverloads5.symbols | 14 bar1(s:string); 15 >bar1 : Symbol(Foo.bar1, Decl(callOverloads5.ts, 2, 11), Decl(callOverloads5.ts, 3, 16), Decl(callO… 18 bar1(n:number); 19 >bar1 : Symbol(Foo.bar1, Decl(callOverloads5.ts, 2, 11), Decl(callOverloads5.ts, 3, 16), Decl(callO… 22 bar1(a:any) { /*WScript.Echo(a);*/ } 23 >bar1 : Symbol(Foo.bar1, Decl(callOverloads5.ts, 2, 11), Decl(callOverloads5.ts, 3, 16), Decl(callO… 39 f1.bar1("a"); 40 >f1.bar1 : Symbol(Foo.bar1, Decl(callOverloads5.ts, 2, 11), Decl(callOverloads5.ts, 3, 16), Decl(ca… 42 >bar1 : Symbol(Foo.bar1, Decl(callOverloads5.ts, 2, 11), Decl(callOverloads5.ts, 3, 16), Decl(callO…
|
D | constructorOverloads2.symbols | 14 bar1() { /*WScript.Echo("base bar1");*/ } 15 >bar1 : Symbol(FooBase.bar1, Decl(constructorOverloads2.ts, 4, 5)) 39 bar1() { /*WScript.Echo("bar1");*/ } 40 >bar1 : Symbol(Foo.bar1, Decl(constructorOverloads2.ts, 14, 5)) 63 f1.bar1(); 64 >f1.bar1 : Symbol(Foo.bar1, Decl(constructorOverloads2.ts, 14, 5)) 66 >bar1 : Symbol(Foo.bar1, Decl(constructorOverloads2.ts, 14, 5))
|
D | callOverloads5.types | 12 bar1(s:string); 13 >bar1 : { (s: string): any; (n: number): any; } 16 bar1(n:number); 17 >bar1 : { (s: string): any; (n: number): any; } 20 bar1(a:any) { /*WScript.Echo(a);*/ } 21 >bar1 : { (s: string): any; (n: number): any; } 39 f1.bar1("a"); 40 >f1.bar1("a") : any 41 >f1.bar1 : { (s: string): any; (n: number): any; } 43 >bar1 : { (s: string): any; (n: number): any; }
|
D | exportedBlockScopedDeclarations.errors.txt | 6 …edBlockScopedDeclarations.ts(11,19): error TS2448: Block-scoped variable 'bar1' used before its de… 7 …edBlockScopedDeclarations.ts(13,14): error TS2448: Block-scoped variable 'bar1' used before its de… 8 …edBlockScopedDeclarations.ts(16,21): error TS2448: Block-scoped variable 'bar1' used before its de… 37 export let bar1 = bar1; // should be compile error 39 !!! error TS2448: Block-scoped variable 'bar1' used before its declaration. 40 !!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:11:12: 'bar1' is declare… 42 let bar1 = bar1; // compile error 44 !!! error TS2448: Block-scoped variable 'bar1' used before its declaration. 45 !!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:13:7: 'bar1' is declared… 48 export let bar1 = bar1; // should be compile error [all …]
|
D | constructorOverloads2.types | 14 bar1() { /*WScript.Echo("base bar1");*/ } 15 >bar1 : () => void 40 bar1() { /*WScript.Echo("bar1");*/ } 41 >bar1 : () => void 71 f1.bar1(); 72 >f1.bar1() : void 73 >f1.bar1 : () => void 75 >bar1 : () => void
|
D | constructorOverloads6.symbols | 15 bar1():void; 16 >bar1 : Symbol(FooBase.bar1, Decl(constructorOverloads6.ts, 5, 5)) 33 bar1():void; 34 >bar1 : Symbol(Foo.bar1, Decl(constructorOverloads6.ts, 12, 32)) 57 f1.bar1(); 58 >f1.bar1 : Symbol(Foo.bar1, Decl(constructorOverloads6.ts, 12, 32)) 60 >bar1 : Symbol(Foo.bar1, Decl(constructorOverloads6.ts, 12, 32))
|
D | escapedIdentifiers.types | 145 bar1: number; 146 >bar1 : number 153 var interfaceType1Object1 = <interfaceType1>{ bar1: 0 }; 155 ><interfaceType1>{ bar1: 0 } : interfaceType1 156 >{ bar1: 0 } : { bar1: number; } 157 >bar1 : number 160 interfaceType1Object1.bar1 = 2; 161 >interfaceType1Object1.bar1 = 2 : 2 162 >interfaceType1Object1.bar1 : number 164 >bar1 : number [all …]
|
D | callOverloads1.symbols | 5 bar1() { /*WScript.Echo("bar1");*/ } 6 >bar1 : Symbol(Foo.bar1, Decl(callOverloads1.ts, 0, 11)) 32 f1.bar1(); 33 >f1.bar1 : Symbol(Foo.bar1, Decl(callOverloads1.ts, 0, 11)) 35 >bar1 : Symbol(Foo.bar1, Decl(callOverloads1.ts, 0, 11))
|
D | constructorOverloads1.symbols | 19 bar1() { /*WScript.Echo("bar1");*/ } 20 >bar1 : Symbol(Foo.bar1, Decl(constructorOverloads1.ts, 8, 5)) 22 bar2() { /*WScript.Echo("bar1");*/ } 46 f1.bar1(); 47 >f1.bar1 : Symbol(Foo.bar1, Decl(constructorOverloads1.ts, 8, 5)) 49 >bar1 : Symbol(Foo.bar1, Decl(constructorOverloads1.ts, 8, 5))
|
D | callOverloads4.symbols | 14 bar1() { /*WScript.Echo("bar1");*/ } 15 >bar1 : Symbol(Foo.bar1, Decl(callOverloads4.ts, 2, 11)) 32 f1.bar1(); 33 >f1.bar1 : Symbol(Foo.bar1, Decl(callOverloads4.ts, 2, 11)) 35 >bar1 : Symbol(Foo.bar1, Decl(callOverloads4.ts, 2, 11))
|
D | callOverloads3.symbols | 14 bar1() { /*WScript.Echo("bar1");*/ } 15 >bar1 : Symbol(Foo.bar1, Decl(callOverloads3.ts, 2, 11)) 30 f1.bar1(); 31 >f1.bar1 : Symbol(Foo.bar1, Decl(callOverloads3.ts, 2, 11)) 33 >bar1 : Symbol(Foo.bar1, Decl(callOverloads3.ts, 2, 11))
|
D | constructorOverloads1.types | 19 bar1() { /*WScript.Echo("bar1");*/ } 20 >bar1 : () => void 22 bar2() { /*WScript.Echo("bar1");*/ } 53 f1.bar1(); 54 >f1.bar1() : void 55 >f1.bar1 : () => void 57 >bar1 : () => void
|
D | pathMappingBasedModuleResolution_rootImport_aliasWithRoot_differentRootTypes.symbols | 6 import { bar as bar1 } from "/bar"; 7 >bar : Symbol(bar1, Decl(bar.js, 0, 0)) 8 >bar1 : Symbol(bar1, Decl(a.ts, 1, 8)) 15 >bar : Symbol(bar1, Decl(bar.js, 0, 0)) 23 >bar : Symbol(bar1, Decl(bar.js, 0, 0)) 31 >bar : Symbol(bar1, Decl(bar.js, 0, 0)) 39 >bar : Symbol(bar1, Decl(bar.js, 0, 0)) 47 >bar : Symbol(bar1, Decl(bar.js, 0, 0)) 55 >bar : Symbol(bar1, Decl(bar.js, 0, 0)) 63 >bar : Symbol(bar1, Decl(bar.js, 0, 0)) [all …]
|
D | callOverloads4.types | 12 bar1() { /*WScript.Echo("bar1");*/ } 13 >bar1 : () => void 32 f1.bar1(); 33 >f1.bar1() : void 34 >f1.bar1 : () => void 36 >bar1 : () => void
|
D | callOverloads3.types | 12 bar1() { /*WScript.Echo("bar1");*/ } 13 >bar1 : () => void 30 f1.bar1(); 31 >f1.bar1() : void 32 >f1.bar1 : () => void 34 >bar1 : () => void
|
D | callOverloads1.types | 5 bar1() { /*WScript.Echo("bar1");*/ } 6 >bar1 : () => void 34 f1.bar1(); 35 >f1.bar1() : void 36 >f1.bar1 : () => void 38 >bar1 : () => void
|
D | callOverloads5.js | 5 bar1(s:string); 6 bar1(n:number); 7 bar1(a:any) { /*WScript.Echo(a);*/ } method in Foo 17 f1.bar1("a"); 27 Foo.prototype.bar1 = function (a) { }; method in Foo 32 f1.bar1("a");
|
D | constructorOverloads6.types | 15 bar1():void; 16 >bar1 : () => void 33 bar1():void; 34 >bar1 : () => void 64 f1.bar1(); 65 >f1.bar1() : void 66 >f1.bar1 : () => void 68 >bar1 : () => void
|
D | callOverloads2.symbols | 5 bar1() { /*WScript.Echo("bar1");*/ } 6 >bar1 : Symbol(Foo.bar1, Decl(callOverloads2.ts, 0, 11)) 42 f1.bar1(); 43 >f1.bar1 : Symbol(Foo.bar1, Decl(callOverloads2.ts, 0, 11)) 45 >bar1 : Symbol(Foo.bar1, Decl(callOverloads2.ts, 0, 11))
|
D | callOverloads2.types | 5 bar1() { /*WScript.Echo("bar1");*/ } 6 >bar1 : () => void 43 f1.bar1(); 44 >f1.bar1() : void 45 >f1.bar1 : () => void 47 >bar1 : () => void
|
D | escapedIdentifiers.js | 55 bar1: number; 61 var interfaceType1Object1 = <interfaceType1>{ bar1: 0 }; 62 interfaceType1Object1.bar1 = 2; 63 var interfaceType1Object2 = <interfaceType\u0031>{ bar1: 0 }; 64 interfaceType1Object2.bar1 = 2; 170 var interfaceType1Object1 = { bar1: 0 }; property 171 interfaceType1Object1.bar1 = 2; 172 var interfaceType1Object2 = { bar1: 0 }; property 173 interfaceType1Object2.bar1 = 2;
|
/third_party/typescript/tests/cases/compiler/ |
D | exportedBlockScopedDeclarations.ts | 12 export let bar1 = bar1; // should be compile error variable 14 let bar1 = bar1; // compile error 17 export let bar1 = bar1; // should be compile error variable
|