/third_party/typescript/tests/baselines/reference/ |
D | divergentAccessorsTypes4.types | 13 prop2: number; 14 >prop2 : number 28 get prop2(): string { return ""; } 29 >prop2 : string 32 set prop2(s: string | 42) { } 33 >prop2 : string 63 i.prop2; 64 >i.prop2 : never 66 >prop2 : never 69 i.prop2 = 42; [all …]
|
D | divergentAccessorsTypes5.types | 16 prop2: number; 17 >prop2 : number 31 get prop2(): string { return ""; } 32 >prop2 : string 35 set prop2(s: string | 42) { } 36 >prop2 : string 52 get prop2(): string { return ""; } 53 >prop2 : string 56 set prop2(s: string | number | boolean) { } 57 >prop2 : string [all …]
|
D | divergentAccessorsTypes4.symbols | 12 prop2: number; 13 >prop2 : Symbol(One.prop2, Decl(divergentAccessorsTypes4.ts, 2, 35)) 26 get prop2(): string { return ""; } 27 >prop2 : Symbol(Two.prop2, Decl(divergentAccessorsTypes4.ts, 9, 36), Decl(divergentAccessorsTypes4.… 29 set prop2(s: string | 42) { } 30 >prop2 : Symbol(Two.prop2, Decl(divergentAccessorsTypes4.ts, 9, 36), Decl(divergentAccessorsTypes4.… 58 i.prop2; 59 >i.prop2 : Symbol(prop2, Decl(divergentAccessorsTypes4.ts, 2, 35), Decl(divergentAccessorsTypes4.ts… 61 >prop2 : Symbol(prop2, Decl(divergentAccessorsTypes4.ts, 2, 35), Decl(divergentAccessorsTypes4.ts, … 64 i.prop2 = 42; [all …]
|
D | divergentAccessorsTypes5.symbols | 15 prop2: number; 16 >prop2 : Symbol(One.prop2, Decl(divergentAccessorsTypes5.ts, 5, 35)) 29 get prop2(): string { return ""; } 30 >prop2 : Symbol(Two.prop2, Decl(divergentAccessorsTypes5.ts, 12, 36), Decl(divergentAccessorsTypes5… 32 set prop2(s: string | 42) { } 33 >prop2 : Symbol(Two.prop2, Decl(divergentAccessorsTypes5.ts, 12, 36), Decl(divergentAccessorsTypes5… 48 get prop2(): string { return ""; } 49 >prop2 : Symbol(Three.prop2, Decl(divergentAccessorsTypes5.ts, 21, 37), Decl(divergentAccessorsType… 51 set prop2(s: string | number | boolean) { } 52 >prop2 : Symbol(Three.prop2, Decl(divergentAccessorsTypes5.ts, 21, 37), Decl(divergentAccessorsType… [all …]
|
D | divergentAccessorsTypes3.types | 13 get prop2(): string { return ""; } 14 >prop2 : string 17 set prop2(s: string | number) { } 18 >prop2 : string 44 get prop2(): string { return ""; } 45 >prop2 : string 48 set prop2(s: string) { } 49 >prop2 : string 86 u1.prop2 = 42; 87 >u1.prop2 = 42 : 42 [all …]
|
D | divergentAccessorsTypes4.js | 6 prop2: number; 13 get prop2(): string { return ""; } 14 set prop2(s: string | 42) { } 27 i.prop2; 29 i.prop2 = 42; 30 i.prop2 = "hello"; // error 68 i.prop2; 70 i.prop2 = 42; 71 i.prop2 = "hello"; // error
|
D | divergentAccessorsTypes5.js | 9 prop2: number; 16 get prop2(): string { return ""; } 17 set prop2(s: string | 42) { } 25 get prop2(): string { return ""; } 26 set prop2(s: string | number | boolean) { } 36 i.prop2 = 42; 37 i.prop2 = "hello"; // error 92 i.prop2 = 42; 93 i.prop2 = "hello"; // error
|
D | collisionSuperAndLocalVarInAccessors.symbols | 28 get prop2(): number { 29 >prop2 : Symbol(b.prop2, Decl(collisionSuperAndLocalVarInAccessors.ts, 10, 21), Decl(collisionSuper… 36 set prop2(val: number) { 37 >prop2 : Symbol(b.prop2, Decl(collisionSuperAndLocalVarInAccessors.ts, 10, 21), Decl(collisionSuper… 48 get prop2(): number { 49 >prop2 : Symbol(c.prop2, Decl(collisionSuperAndLocalVarInAccessors.ts, 19, 21), Decl(collisionSuper… 59 set prop2(val: number) { 60 >prop2 : Symbol(c.prop2, Decl(collisionSuperAndLocalVarInAccessors.ts, 19, 21), Decl(collisionSuper…
|
D | collisionSuperAndLocalFunctionInAccessors.symbols | 29 get prop2(): number { 30 >prop2 : Symbol(b.prop2, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 13, 21), Decl(collision… 37 set prop2(val: number) { 38 >prop2 : Symbol(b.prop2, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 13, 21), Decl(collision… 50 get prop2(): number { 51 >prop2 : Symbol(c.prop2, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 24, 21), Decl(collision… 62 set prop2(val: number) { 63 >prop2 : Symbol(c.prop2, Decl(collisionSuperAndLocalFunctionInAccessors.ts, 24, 21), Decl(collision…
|
D | divergentAccessorsTypes3.symbols | 12 get prop2(): string { return ""; } 13 >prop2 : Symbol(One.prop2, Decl(divergentAccessorsTypes3.ts, 2, 35), Decl(divergentAccessorsTypes3.… 15 set prop2(s: string | number) { } 16 >prop2 : Symbol(One.prop2, Decl(divergentAccessorsTypes3.ts, 2, 35), Decl(divergentAccessorsTypes3.… 40 get prop2(): string { return ""; } 41 >prop2 : Symbol(Two.prop2, Decl(divergentAccessorsTypes3.ts, 15, 35), Decl(divergentAccessorsTypes3… 43 set prop2(s: string) { } 44 >prop2 : Symbol(Two.prop2, Decl(divergentAccessorsTypes3.ts, 15, 35), Decl(divergentAccessorsTypes3… 77 u1.prop2 = 42; 78 >u1.prop2 : Symbol(prop2, Decl(divergentAccessorsTypes3.ts, 2, 35), Decl(divergentAccessorsTypes3.t… [all …]
|
D | collisionSuperAndLocalFunctionInAccessors.types | 30 get prop2(): number { 31 >prop2 : number 39 set prop2(val: number) { 40 >prop2 : number 52 get prop2(): number { 53 >prop2 : number 66 set prop2(val: number) { 67 >prop2 : number
|
D | collisionSuperAndLocalVarInAccessors.types | 32 get prop2(): number { 33 >prop2 : number 42 set prop2(val: number) { 43 >prop2 : number 55 get prop2(): number { 56 >prop2 : number 69 set prop2(val: number) { 70 >prop2 : number
|
D | divergentAccessorsTypes3.js | 6 get prop2(): string { return ""; } 7 set prop2(s: string | number) { } 19 get prop2(): string { return ""; } 20 set prop2(s: string) { } 34 u1.prop2 = 42; 35 u1.prop2 = "hello"; 101 u1.prop2 = 42; 102 u1.prop2 = "hello";
|
D | divergentAccessorsTypes5.errors.txt | 13 prop2: number; 20 get prop2(): string { return ""; } 21 set prop2(s: string | 42) { } 29 get prop2(): string { return ""; } 30 set prop2(s: string | number | boolean) { } 42 i.prop2 = 42; 43 i.prop2 = "hello"; // error
|
D | objectLiteralThisWidenedOnUse.types | 6 >GlobalIns : { prop1: number; prop2: number; prop3: number; test(): void; accept_foo(foo: Foo): boo… 7 …prop2: 2, prop3: 3, test () { this.accept_foo(this); }, accept_foo (foo: Foo): boolean { … 13 prop2: 2, 14 >prop2 : number 27 >this : { prop1: number; prop2: number; prop3: number; test(): void; accept_foo(foo: Foo): boolean;… 29 >this : { prop1: number; prop2: number; prop3: number; test(): void; accept_foo(foo: Foo): boolean;…
|
D | destructuredLateBoundNameHasCorrectTypes.types | 28 const notPresent = "prop2"; 29 >notPresent : "prop2" 30 >"prop2" : "prop2" 33 >notPresent : "prop2" 35 >{ prop: "b" } : { prop: string; prop2: any; }
|
D | divergentAccessorsTypes4.errors.txt | 9 prop2: number; 16 get prop2(): string { return ""; } 17 set prop2(s: string | 42) { } 30 i.prop2; 32 i.prop2 = 42; 33 i.prop2 = "hello"; // error
|
D | typeGuardsOnClassProperty.types | 61 >o : { prop1: number | string; prop2: boolean | string; } 66 prop2: boolean|string; 67 >prop2 : string | boolean 70 >{ prop1: "string" , prop2: true } : { prop1: string; prop2: true; } 76 prop2: true 77 >prop2 : true 86 >o : { prop1: string | number; prop2: string | boolean; } 92 >o : { prop1: string | number; prop2: string | boolean; } 99 >o : { prop1: string | number; prop2: string | boolean; }
|
D | declarationEmitFirstTypeArgumentGenericFunctionType.js | 20 var prop2: Y<string[], <Tany>() => Tany>; // No space after second type argument 21 var prop2: Y<string[], <Tany>() => Tany>; // space after second type argument variable 45 var prop2; // No space after second type argument variable 46 var prop2; // space after second type argument variable 62 declare var prop2: Y<string[], <Tany>() => Tany>; 63 declare var prop2: Y<string[], <Tany>() => Tany>;
|
D | es6ImportNamedImportWithTypesAndValues.js | 8 prop2: string; 14 prop2 = "world"; field in C2 35 this.prop2 = "world"; 53 prop2: string; 59 prop2: string;
|
D | es6ImportNamedImportWithTypesAndValues.symbols | 11 prop2: string; 12 >prop2 : Symbol(I2.prop2, Decl(server.ts, 3, 21)) 25 prop2 = "world"; 26 >prop2 : Symbol(C2.prop2, Decl(server.ts, 9, 31))
|
/third_party/typescript/tests/cases/compiler/ |
D | divergentAccessorsTypes5.ts | 10 prop2: number; property in One 17 get prop2(): string { return ""; } method in Two 18 set prop2(s: string | 42) { } method in Two 26 get prop2(): string { return ""; } method in Three 27 set prop2(s: string | number | boolean) { } method in Three 37 i.prop2 = 42; 38 i.prop2 = "hello"; // error
|
D | divergentAccessorsTypes4.ts | 7 prop2: number; property in One 14 get prop2(): string { return ""; } method in Two 15 set prop2(s: string | 42) { } method in Two 28 i.prop2; 30 i.prop2 = 42; 31 i.prop2 = "hello"; // error
|
D | divergentAccessorsTypes3.ts | 7 get prop2(): string { return ""; } method in One 8 set prop2(s: string | number) { } method in One 20 get prop2(): string { return ""; } method in Two 21 set prop2(s: string) { } method in Two 35 u1.prop2 = 42; 36 u1.prop2 = "hello";
|
D | collisionSuperAndLocalVarInAccessors.ts | 13 get prop2(): number { method in b 17 set prop2(val: number) { method in b 22 get prop2(): number { method in c 28 set prop2(val: number) { method in c
|