/third_party/typescript/tests/baselines/reference/ |
D | errorForUsingPropertyOfTypeAsType03.errors.txt | 1 …singPropertyOfTypeAsType03.ts(11,19): error TS2694: Namespace 'Color' has no exported member 'Red'. 2 tests/cases/compiler/errorForUsingPropertyOfTypeAsType03.ts(13,19): error TS2339: Property 'Red' do… 5 tests/cases/compiler/errorForUsingPropertyOfTypeAsType03.ts(21,16): error TS2339: Property 'Red' do… 6 …t access 'C2.Red' because 'C2' is a type, but not a namespace. Did you mean to retrieve the type o… 7 …t access 'C2.Red' because 'C2' is a type, but not a namespace. Did you mean to retrieve the type o… 13 Red, 21 let a1: Color.Red.toString; 23 !!! error TS2694: Namespace 'Color' has no exported member 'Red'. 24 let a2: Color.Red["toString"]; 25 let a3: Color["Red"]["toString"]; [all …]
|
D | errorForUsingPropertyOfTypeAsType03.types | 8 Red, 9 >Red : Color.Red 25 let a1: Color.Red.toString; 28 >Red : any 30 let a2: Color.Red["toString"]; 34 let a3: Color["Red"]["toString"]; 37 //let b1: (typeof Color).Red.toString; 38 //let b2: (typeof Color).Red["toString"]; 39 let b3: (typeof Color)["Red"]["toString"]; 43 let c1: C1.Red.toString; [all …]
|
D | errorForUsingPropertyOfTypeAsType03.symbols | 8 Red, 9 >Red : Symbol(Color.Red, Decl(errorForUsingPropertyOfTypeAsType03.ts, 1, 16)) 26 let a1: Color.Red.toString; 30 let a2: Color.Red["toString"]; 33 >Red : Symbol(Color.Red, Decl(errorForUsingPropertyOfTypeAsType03.ts, 1, 16)) 35 let a3: Color["Red"]["toString"]; 39 //let b1: (typeof Color).Red.toString; 40 //let b2: (typeof Color).Red["toString"]; 41 let b3: (typeof Color)["Red"]["toString"]; 45 let c1: C1.Red.toString; [all …]
|
D | enumPropertyAccess.types | 5 Red, 6 >Red : Colors.Red 12 var x = Colors.Red; // type of 'x' should be 'Colors' 14 >Colors.Red : Colors.Red 16 >Red : Colors.Red 21 >x : Colors.Red 27 >x : Colors.Red
|
D | derivedClasses.types | 2 class Red extends Color { 3 >Red : Red 60 var r = new Red(); 61 >r : Red 62 >new Red() : Red 63 >Red : typeof Red 73 >r : Red 79 >r : Red
|
D | ModuleAndEnumWithSameNameAndCommonRoot.types | 17 Red, Blue 18 >Red : enumdule.Red 25 var x = enumdule.Red; 27 >enumdule.Red : enumdule.Red 29 >Red : enumdule.Red
|
D | EnumAndModuleWithSameNameAndCommonRoot.types | 5 Red, Blue 6 >Red : enumdule.Red 25 var x = enumdule.Red; 27 >enumdule.Red : enumdule.Red 29 >Red : enumdule.Red
|
D | ModuleWithExportedAndNonExportedEnums.types | 5 export enum Color { Red, Blue } 7 >Red : Color.Red 17 var a: A.Color = A.Color.Red; 20 >A.Color.Red : A.Color.Red 24 >Red : A.Color.Red
|
D | errorForUsingPropertyOfTypeAsType03.js | 4 Red, 12 let a1: Color.Red.toString; 13 let a2: Color.Red["toString"]; 20 let c1: C1.Red.toString; 21 let c2: C1.Red["toString"]; 24 let d1: C2.Red.toString; 25 let d2: C2.Red["toString"];
|
D | derivedClasses.js | 2 class Red extends Color { class 22 var r = new Red(); 49 var Red = /** @class */ (function (_super) { 50 __extends(Red, _super); 51 function Red() { class in Red 54 Red.prototype.shade = function () { 59 return Red; 80 var r = new Red();
|
D | enumMerging.types | 165 export enum Color { Red, Green, Blue } 167 >Red : Color.Red 174 export enum Color { Red, Green, Blue } 176 >Red : Color.Red 185 export enum Color { Red, Green, Blue } 187 >Red : Color.Red 210 t = A.Color.Red; 211 >t = A.Color.Red : A.Color.Red 213 >A.Color.Red : A.Color.Red 217 >Red : A.Color.Red
|
D | ModuleWithExportedAndNonExportedEnums.symbols | 5 export enum Color { Red, Blue } 7 >Red : Symbol(Color.Red, Decl(ModuleWithExportedAndNonExportedEnums.ts, 1, 23)) 17 var a: A.Color = A.Color.Red; 21 >A.Color.Red : Symbol(A.Color.Red, Decl(ModuleWithExportedAndNonExportedEnums.ts, 1, 23)) 25 >Red : Symbol(A.Color.Red, Decl(ModuleWithExportedAndNonExportedEnums.ts, 1, 23))
|
D | derivedClasses.symbols | 2 class Red extends Color { 3 >Red : Symbol(Red, Decl(derivedClasses.ts, 0, 0)) 7 >shade : Symbol(Red.shade, Decl(derivedClasses.ts, 0, 25)) 12 >this : Symbol(Red, Decl(derivedClasses.ts, 0, 0)) 48 var r = new Red(); 50 >Red : Symbol(Red, Decl(derivedClasses.ts, 0, 0)) 57 >r.shade : Symbol(Red.shade, Decl(derivedClasses.ts, 0, 25)) 59 >shade : Symbol(Red.shade, Decl(derivedClasses.ts, 0, 25))
|
D | enumUsedBeforeDeclaration.types | 14 enum Color { Red, Green, Blue } 16 >Red : Color.Red 20 const enum ConstColor { Red, Green, Blue } 22 >Red : ConstColor.Red
|
D | ModuleAndEnumWithSameNameAndCommonRoot.symbols | 17 Red, Blue 18 >Red : Symbol(enumdule.Red, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 7, 15)) 26 var x = enumdule.Red; 28 >enumdule.Red : Symbol(enumdule.Red, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 7, 15)) 30 >Red : Symbol(enumdule.Red, Decl(ModuleAndEnumWithSameNameAndCommonRoot.ts, 7, 15))
|
D | EnumAndModuleWithSameNameAndCommonRoot.symbols | 5 Red, Blue 6 >Red : Symbol(enumdule.Red, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 0, 15)) 26 var x = enumdule.Red; 28 >enumdule.Red : Symbol(enumdule.Red, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 0, 15)) 30 >Red : Symbol(enumdule.Red, Decl(EnumAndModuleWithSameNameAndCommonRoot.ts, 0, 15))
|
D | enumPropertyAccess.symbols | 5 Red, 6 >Red : Symbol(Colors.Red, Decl(enumPropertyAccess.ts, 0, 13)) 12 var x = Colors.Red; // type of 'x' should be 'Colors' 14 >Colors.Red : Symbol(Colors.Red, Decl(enumPropertyAccess.ts, 0, 13)) 16 >Red : Symbol(Colors.Red, Decl(enumPropertyAccess.ts, 0, 13))
|
D | invalidModuleWithStatementsOfEveryKind.types | 51 public enum Color { Blue, Red } 54 >Red : Color.Red 104 private enum Color { Blue, Red } 107 >Red : Color.Red 158 static enum Color { Blue, Red } 161 >Red : Color.Red
|
D | enumUsedBeforeDeclaration.symbols | 16 enum Color { Red, Green, Blue } 18 >Red : Symbol(Color.Red, Decl(enumUsedBeforeDeclaration.ts, 2, 12)) 22 const enum ConstColor { Red, Green, Blue } 24 >Red : Symbol(ConstColor.Red, Decl(enumUsedBeforeDeclaration.ts, 3, 23))
|
D | exportCodeGen.types | 67 export enum Color { Red } 69 >Red : Color.Red 95 enum Color { Red } 97 >Red : Color.Red
|
D | indexTypeCheck.symbols | 2 interface Red { 3 >Red : Symbol(Red, Decl(indexTypeCheck.ts, 0, 0)) 25 [n:number]: Red; // ok 27 >Red : Symbol(Red, Decl(indexTypeCheck.ts, 0, 0)) 29 [s:string]: Red; // ok 31 >Red : Symbol(Red, Decl(indexTypeCheck.ts, 0, 0))
|
D | enumPropertyAccess.errors.txt | 1 …er/enumPropertyAccess.ts(7,11): error TS2339: Property 'Green' does not exist on type 'Colors.Red'. 7 Red, 11 var x = Colors.Red; // type of 'x' should be 'Colors' 14 !!! error TS2339: Property 'Green' does not exist on type 'Colors.Red'.
|
/third_party/typescript/tests/cases/compiler/ |
D | errorForUsingPropertyOfTypeAsType03.ts | 3 Red, enumerator 11 let a1: Color.Red.toString; 12 let a2: Color.Red["toString"]; 19 let c1: C1.Red.toString; 20 let c2: C1.Red["toString"]; 23 let d1: C2.Red.toString; 24 let d2: C2.Red["toString"];
|
/third_party/boost/libs/proto/example/ |
D | rgb.cpp | 45 struct Red; 52 struct Red struct 56 , proto::plus<Red, Red> 63 proto::plus<Red, Blue> 64 , proto::plus<Blue, Red> 72 proto::plus<Red, Green> 73 , proto::plus<Green, Red> 81 proto::when< Red, RedTag() >
|
/third_party/typescript/tests/cases/conformance/enums/ |
D | enumMerging.ts | 50 export enum Color { Red, Green, Blue } enumerator 53 export enum Color { Red, Green, Blue } enumerator 57 export enum Color { Red, Green, Blue } enumerator 64 t = A.Color.Red;
|