/third_party/typescript/tests/cases/conformance/types/literal/ |
D | templateLiteralTypes3.ts | 6 type Foo1<T> = T extends `*${infer U}*` ? U : never; alias 8 type T01 = Foo1<'hello'>; 9 type T02 = Foo1<'*hello*'>; 10 type T03 = Foo1<'**hello**'>; 11 type T04 = Foo1<`*${string}*`>; 12 type T05 = Foo1<`*${number}*`>; 13 type T06 = Foo1<`*${bigint}*`>; 14 type T07 = Foo1<`*${any}*`>; 15 type T08 = Foo1<`**${string}**`>; 16 type T09 = Foo1<`**${string}**${string}**`>; [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | moduleAndInterfaceWithSameName.js | 2 module Foo1 { 35 var Foo1; 36 (function (Foo1) { argument 40 })(Bar = Foo1.Bar || (Foo1.Bar = {})); 41 })(Foo1 || (Foo1 = {}));
|
D | templateLiteralTypes3.js | 4 type Foo1<T> = T extends `*${infer U}*` ? U : never; 6 type T01 = Foo1<'hello'>; 7 type T02 = Foo1<'*hello*'>; 8 type T03 = Foo1<'**hello**'>; 9 type T04 = Foo1<`*${string}*`>; 10 type T05 = Foo1<`*${number}*`>; 11 type T06 = Foo1<`*${bigint}*`>; 12 type T07 = Foo1<`*${any}*`>; 13 type T08 = Foo1<`**${string}**`>; 14 type T09 = Foo1<`**${string}**${string}**`>; [all …]
|
D | propertyIdentityWithPrivacyMismatch.js | 21 class Foo1 { class 27 var y: Foo1; 37 var Foo1 = /** @class */ (function () { class 38 function Foo1() { class in anonymousFunctioncdec46780100.Foo1 40 return Foo1;
|
D | propertyIdentityWithPrivacyMismatch.types | 17 class Foo1 { 18 >Foo1 : Foo1 29 var y: Foo1; 30 >y : Foo1 33 >y : Foo1
|
D | varianceMeasurement.types | 5 interface Foo1<T> { 9 y: Foo1<(arg: T) => void>; 10 >y : Foo1<(arg: T) => void> 14 declare const f10: Foo1<string>; 15 >f10 : Foo1<string> 17 const f11: Foo1<'a'> = f10; 18 >f11 : Foo1<"a"> 19 >f10 : Foo1<string> 21 const f12: Foo1<unknown> = f10; 22 >f12 : Foo1<unknown> [all …]
|
D | propertyIdentityWithPrivacyMismatch.symbols | 19 class Foo1 { 20 >Foo1 : Symbol(Foo1, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 4, 14)) 23 >n : Symbol(Foo1.n, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 5, 12)) 31 var y: Foo1; 33 >Foo1 : Symbol(Foo1, Decl(propertyIdentityWithPrivacyMismatch_1.ts, 4, 14))
|
D | templateLiteralTypes3.symbols | 4 type Foo1<T> = T extends `*${infer U}*` ? U : never; 5 >Foo1 : Symbol(Foo1, Decl(templateLiteralTypes3.ts, 0, 0)) 11 type T01 = Foo1<'hello'>; 13 >Foo1 : Symbol(Foo1, Decl(templateLiteralTypes3.ts, 0, 0)) 15 type T02 = Foo1<'*hello*'>; 17 >Foo1 : Symbol(Foo1, Decl(templateLiteralTypes3.ts, 0, 0)) 19 type T03 = Foo1<'**hello**'>; 21 >Foo1 : Symbol(Foo1, Decl(templateLiteralTypes3.ts, 0, 0)) 23 type T04 = Foo1<`*${string}*`>; 25 >Foo1 : Symbol(Foo1, Decl(templateLiteralTypes3.ts, 0, 0)) [all …]
|
D | varianceMeasurement.symbols | 5 interface Foo1<T> { 6 >Foo1 : Symbol(Foo1, Decl(varianceMeasurement.ts, 0, 0)) 10 >x : Symbol(Foo1.x, Decl(varianceMeasurement.ts, 3, 19)) 13 y: Foo1<(arg: T) => void>; 14 >y : Symbol(Foo1.y, Decl(varianceMeasurement.ts, 4, 7)) 15 >Foo1 : Symbol(Foo1, Decl(varianceMeasurement.ts, 0, 0)) 20 declare const f10: Foo1<string>; 22 >Foo1 : Symbol(Foo1, Decl(varianceMeasurement.ts, 0, 0)) 24 const f11: Foo1<'a'> = f10; 26 >Foo1 : Symbol(Foo1, Decl(varianceMeasurement.ts, 0, 0)) [all …]
|
D | deepComparisons.types | 42 type Foo1<T> = { x: Foo2<T> }; 43 >Foo1 : Foo1<T> 46 type Foo2<T> = { x: Foo1<T> }; 48 >x : Foo1<T> 53 let x: Foo1<U> = 0 as any as Bar<U>; // No error! 54 >x : Foo1<U>
|
D | varArgConstructorMemberParameter.js | 2 class Foo1 { class 16 var Foo1 = /** @class */ (function () { 17 function Foo1() { class in Foo1 23 return Foo1;
|
D | unionAndIntersectionInference3.types | 33 interface Foo1<T> { 45 declare let f1: <T>(x: Foo1<T> | Bar1<T>) => Promise<T>; 46 >f1 : <T>(x: Foo1<T> | Bar1<T>) => Promise<T> 47 >x : Foo1<T> | Bar1<T> 49 declare let f2: <U>(x: Foo1<U> | Bar1<U>) => Promise<U>; 50 >f2 : <U>(x: Foo1<U> | Bar1<U>) => Promise<U> 51 >x : Foo1<U> | Bar1<U> 54 >f1 = f2 : <U>(x: Foo1<U> | Bar1<U>) => Promise<U> 55 >f1 : <T>(x: Foo1<T> | Bar1<T>) => Promise<T> 56 >f2 : <U>(x: Foo1<U> | Bar1<U>) => Promise<U> [all …]
|
D | varianceMeasurement.js | 5 interface Foo1<T> { 7 y: Foo1<(arg: T) => void>; 10 declare const f10: Foo1<string>; 11 const f11: Foo1<'a'> = f10; 12 const f12: Foo1<unknown> = f10;
|
D | templateLiteralTypes3.errors.txt | 15 type Foo1<T> = T extends `*${infer U}*` ? U : never; 17 type T01 = Foo1<'hello'>; 18 type T02 = Foo1<'*hello*'>; 19 type T03 = Foo1<'**hello**'>; 20 type T04 = Foo1<`*${string}*`>; 21 type T05 = Foo1<`*${number}*`>; 22 type T06 = Foo1<`*${bigint}*`>; 23 type T07 = Foo1<`*${any}*`>; 24 type T08 = Foo1<`**${string}**`>; 25 type T09 = Foo1<`**${string}**${string}**`>; [all …]
|
D | varArgConstructorMemberParameter.types | 2 class Foo1 { 3 >Foo1 : Foo1
|
D | deepComparisons.symbols | 62 type Foo1<T> = { x: Foo2<T> }; 63 >Foo1 : Symbol(Foo1, Decl(deepComparisons.ts, 11, 1)) 69 type Foo2<T> = { x: Foo1<T> }; 73 >Foo1 : Symbol(Foo1, Decl(deepComparisons.ts, 11, 1)) 80 let x: Foo1<U> = 0 as any as Bar<U>; // No error! 82 >Foo1 : Symbol(Foo1, Decl(deepComparisons.ts, 11, 1))
|
D | varArgConstructorMemberParameter.symbols | 2 class Foo1 { 3 >Foo1 : Symbol(Foo1, Decl(varArgConstructorMemberParameter.ts, 0, 0))
|
D | neverAsDiscriminantType(strict=false).types | 2 type Foo1 = { kind: 'a', a: number } | { kind: 'b' } | { kind: never }; 3 >Foo1 : { kind: 'a'; a: number; } | { kind: 'b'; } | { kind: never; } 9 function f1(foo: Foo1) { 10 >f1 : (foo: Foo1) => void 11 >foo : Foo1 16 >foo : Foo1
|
D | neverAsDiscriminantType(strict=true).types | 2 type Foo1 = { kind: 'a', a: number } | { kind: 'b' } | { kind: never }; 3 >Foo1 : { kind: 'a'; a: number; } | { kind: 'b'; } | { kind: never; } 9 function f1(foo: Foo1) { 10 >f1 : (foo: Foo1) => void 11 >foo : Foo1 16 >foo : Foo1
|
D | propertyIdentityWithPrivacyMismatch.errors.txt | 2 …able declarations must have the same type. Variable 'y' must be of type 'Foo1', but here has type… 14 class Foo1 { 20 var y: Foo1; 23 …able declarations must have the same type. Variable 'y' must be of type 'Foo1', but here has type…
|
D | collisionThisExpressionAndParameter.js | 34 class Foo1 { class 134 var Foo1 = /** @class */ (function () { 135 function Foo1(_this) { class in Foo1 143 return Foo1;
|
/third_party/typescript/tests/cases/compiler/ |
D | varianceMeasurement.ts | 6 interface Foo1<T> { interface 8 y: Foo1<(arg: T) => void>; 11 declare const f10: Foo1<string>; 12 const f11: Foo1<'a'> = f10; 13 const f12: Foo1<unknown> = f10;
|
D | deepComparisons.ts | 14 type Foo1<T> = { x: Foo2<T> }; alias 15 type Foo2<T> = { x: Foo1<T> }; 18 let x: Foo1<U> = 0 as any as Bar<U>; // No error!
|
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl-no-opt/components/ |
D | vertex-input-component.vert | 21 float Foo1 = {}; 23 Foo1 = in.m_location_0.w; 24 out.gl_Position = float4(Foo3, Foo1); 25 out.Foo = Foo3 + float3(Foo1);
|
/third_party/skia/third_party/externals/spirv-cross/shaders-msl-no-opt/components/ |
D | vertex-input-component.vert | 4 layout(location = 0, component = 3) in float Foo1; 9 gl_Position = vec4(Foo3, Foo1); 10 Foo = Foo3 + Foo1;
|