Home
last modified time | relevance | path

Searched refs:Partial (Results 1 – 25 of 453) sorted by relevance

12345678910>>...19

/third_party/typescript/tests/baselines/reference/
DmappedTypes5.types2 function f<T>(p: Partial<T>, r: Readonly<T>, pr: Partial<Readonly<T>>, rp: Readonly<Partial<T>>) {
3 >f : <T>(p: Partial<T>, r: Readonly<T>, pr: Partial<Readonly<T>>, rp: Readonly<Partial<T>>) => void
4 >p : Partial<T>
6 >pr : Partial<Readonly<T>>
7 >rp : Readonly<Partial<T>>
9 let a1: Partial<T> = p;
10 >a1 : Partial<T>
11 >p : Partial<T>
13 let a2: Partial<T> = r;
14 >a2 : Partial<T>
[all …]
DmappedTypes5.errors.txt1 tests/cases/conformance/types/mapped/mappedTypes5.ts(6,9): error TS2322: Type 'Partial<T>' is not a…
2 tests/cases/conformance/types/mapped/mappedTypes5.ts(8,9): error TS2322: Type 'Partial<Readonly<T>>…
3 tests/cases/conformance/types/mapped/mappedTypes5.ts(9,9): error TS2322: Type 'Readonly<Partial<T>>…
7 … function f<T>(p: Partial<T>, r: Readonly<T>, pr: Partial<Readonly<T>>, rp: Readonly<Partial<T>>) {
8 let a1: Partial<T> = p;
9 let a2: Partial<T> = r;
10 let a3: Partial<T> = pr;
11 let a4: Partial<T> = rp;
14 !!! error TS2322: Type 'Partial<T>' is not assignable to type 'Readonly<T>'.
18 !!! error TS2322: Type 'Partial<Readonly<T>>' is not assignable to type 'Readonly<T>'.
[all …]
DmappedTypes5.js2 function f<T>(p: Partial<T>, r: Readonly<T>, pr: Partial<Readonly<T>>, rp: Readonly<Partial<T>>) {
3 let a1: Partial<T> = p;
4 let a2: Partial<T> = r;
5 let a3: Partial<T> = pr;
6 let a4: Partial<T> = rp;
11 let c1: Partial<Readonly<T>> = p;
12 let c2: Partial<Readonly<T>> = r;
13 let c3: Partial<Readonly<T>> = pr;
14 let c4: Partial<Readonly<T>> = rp;
15 let d1: Readonly<Partial<T>> = p;
[all …]
DmappedTypes5.symbols2 function f<T>(p: Partial<T>, r: Readonly<T>, pr: Partial<Readonly<T>>, rp: Readonly<Partial<T>>) {
6 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
12 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
17 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
20 let a1: Partial<T> = p;
22 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
26 let a2: Partial<T> = r;
28 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
32 let a3: Partial<T> = pr;
34 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
[all …]
DmappedTypesAndObjects.types2 function f1<T>(x: Partial<T>, y: Readonly<T>) {
3 >f1 : <T>(x: Partial<T>, y: Readonly<T>) => void
4 >x : Partial<T>
11 >obj = x : Partial<T>
13 >x : Partial<T>
21 function f2<T>(x: Partial<T>, y: Readonly<T>) {
22 >f2 : <T>(x: Partial<T>, y: Readonly<T>) => void
23 >x : Partial<T>
31 >obj = x : Partial<T>
33 >x : Partial<T>
[all …]
DmappedTypeRelationships.types124 function f10<T>(x: T, y: Partial<T>, k: keyof T) {
125 >f10 : <T>(x: T, y: Partial<T>, k: keyof T) => void
127 >y : Partial<T>
131 >x[k] = y[k] : Partial<T>[keyof T]
135 >y[k] : Partial<T>[keyof T]
136 >y : Partial<T>
141 >y[k] : Partial<T>[keyof T]
142 >y : Partial<T>
149 function f11<T, K extends keyof T>(x: T, y: Partial<T>, k: K) {
150 >f11 : <T, K extends keyof T>(x: T, y: Partial<T>, k: K) => void
[all …]
DmappedTypesAndObjects.js2 function f1<T>(x: Partial<T>, y: Readonly<T>) {
8 function f2<T>(x: Partial<T>, y: Readonly<T>) {
14 function f3<T>(x: Partial<T>) {
32 foo: Partial<Something>; // or other mapped type
36 foo: Partial<T>; // or other mapped type
71 declare function f1<T>(x: Partial<T>, y: Readonly<T>): void;
72 declare function f2<T>(x: Partial<T>, y: Readonly<T>): void;
73 declare function f3<T>(x: Partial<T>): void;
89 foo: Partial<Something>;
92 foo: Partial<T>;
DmappedTypes6.types50 function f1<T>(x: Required<T>, y: T, z: Partial<T>) {
51 >f1 : <T>(x: Required<T>, y: T, z: Partial<T>) => void
54 >z : Partial<T>
67 >x = z : Partial<T>
69 >z : Partial<T>
82 >y = z : Partial<T>
84 >z : Partial<T>
88 >z : Partial<T>
93 >z : Partial<T>
97 >z = z : Partial<T>
[all …]
DmappedTypesArraysTuples.js6 type T01 = Partial<[number, string?, ...boolean[]]>;
10 type T11 = Partial<string[]>;
13 type T14 = Partial<ReadonlyArray<string>>;
17 type T21 = Partial<(string | undefined)[]>;
20 type T24 = Partial<ReadonlyArray<string | undefined>>;
23 type T30 = Boxified<Partial<string[]>>;
24 type T31 = Partial<Boxified<string[]>>;
35 type T52 = Partial<Readonly<string[]>>;
36 type T53 = Readonly<Partial<string[]>>;
50 declare function nonpartial<T>(x: Partial<T>): T;
[all …]
DinferenceOptionalPropertiesStrict.types49 var v3: Partial<{ a: string, b: string }>;
50 >v3 : Partial<{ a: string; b: string; }>
55 >v3 : Partial<{ a: string; b: string; }>
59 var v4: Partial<{ a: string, b: string | undefined }>;
60 >v4 : Partial<{ a: string; b: string | undefined; }>
65 >v4 : Partial<{ a: string; b: string | undefined; }>
69 var v5: Required<Partial<{ a: string, b: string }>>;
70 >v5 : Required<Partial<{ a: string; b: string; }>>
75 >v5 : Required<Partial<{ a: string; b: string; }>>
79 var v6: Required<Partial<{ a: string, b: string | undefined }>>;
[all …]
DinferenceOptionalProperties.types49 var v3: Partial<{ a: string, b: string }>;
50 >v3 : Partial<{ a: string; b: string; }>
55 >v3 : Partial<{ a: string; b: string; }>
59 var v4: Partial<{ a: string, b: string | undefined }>;
60 >v4 : Partial<{ a: string; b: string | undefined; }>
65 >v4 : Partial<{ a: string; b: string | undefined; }>
69 var v5: Required<Partial<{ a: string, b: string }>>;
70 >v5 : Required<Partial<{ a: string; b: string; }>>
75 >v5 : Required<Partial<{ a: string; b: string; }>>
79 var v6: Required<Partial<{ a: string, b: string | undefined }>>;
[all …]
DmappedTypesAndObjects.symbols2 function f1<T>(x: Partial<T>, y: Readonly<T>) {
6 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
24 function f2<T>(x: Partial<T>, y: Readonly<T>) {
28 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
47 function f3<T>(x: Partial<T>) {
51 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
93 foo: Partial<Something>; // or other mapped type
95 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
104 foo: Partial<T>; // or other mapped type
106 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
DdeleteExpressionMustBeOptional_exactOptionalPropertyTypes(exactoptionalpropertytypes=false).types48 declare const g: Partial<Foo>
49 >g : Partial<Foo>
120 >g : Partial<Foo>
126 >g : Partial<Foo>
132 >g : Partial<Foo>
138 >g : Partial<Foo>
144 >g : Partial<Foo>
150 >g : Partial<Foo>
156 >g : Partial<Foo>
162 >g : Partial<Foo>
[all …]
DdeleteExpressionMustBeOptional_exactOptionalPropertyTypes(exactoptionalpropertytypes=true).types48 declare const g: Partial<Foo>
49 >g : Partial<Foo>
120 >g : Partial<Foo>
126 >g : Partial<Foo>
132 >g : Partial<Foo>
138 >g : Partial<Foo>
144 >g : Partial<Foo>
150 >g : Partial<Foo>
156 >g : Partial<Foo>
162 >g : Partial<Foo>
[all …]
DtypeGuardsWithInstanceOf.types57 let v: Validator & Partial<OnChanges> = null as any;
58 >v : Validator & Partial<OnChanges>
64 >v : Validator & Partial<OnChanges>
67 v // Validator & Partial<OnChanges> & C
70 v // Validator & Partial<OnChanges> via subtype reduction
71 >v : C | (Validator & Partial<OnChanges>)
79 >v : C | (Validator & Partial<OnChanges>)
85 >v : C | (Validator & Partial<OnChanges>)
DmappedTypeRelationships.js30 function f10<T>(x: T, y: Partial<T>, k: keyof T) {
35 function f11<T, K extends keyof T>(x: T, y: Partial<T>, k: K) {
40 function f12<T, U extends T>(x: T, y: Partial<U>, k: keyof T) {
45 function f13<T, U extends T, K extends keyof T>(x: T, y: Partial<U>, k: K) {
72 function f30<T>(x: T, y: Partial<T>) {
77 function f31<T extends Thing>(x: Partial<Thing>, y: Partial<T>) {
127 function f61<U>(x: Identity<U>, y: Partial<U>) {
172 function f80<T>(t: T): Partial<T> {
176 function f81<T, K extends keyof T>(t: T, k: K): Partial<T[K]> {
180 function f82<T, K1 extends keyof T, K2 extends keyof T[K1]>(t: T, k1: K1, k2: K2): Partial<T[K1][K2…
[all …]
DinferenceOptionalPropertiesStrict.js16 var v3: Partial<{ a: string, b: string }>;
19 var v4: Partial<{ a: string, b: string | undefined }>;
22 var v5: Required<Partial<{ a: string, b: string }>>;
25 var v6: Required<Partial<{ a: string, b: string | undefined }>>;
77 declare var v3: Partial<{
85 declare var v4: Partial<{
93 declare var v5: Required<Partial<{
101 declare var v6: Required<Partial<{
DinferenceOptionalProperties.js16 var v3: Partial<{ a: string, b: string }>;
19 var v4: Partial<{ a: string, b: string | undefined }>;
22 var v5: Required<Partial<{ a: string, b: string }>>;
25 var v6: Required<Partial<{ a: string, b: string | undefined }>>;
77 declare var v3: Partial<{
85 declare var v4: Partial<{
93 declare var v5: Required<Partial<{
101 declare var v6: Required<Partial<{
DinferenceOptionalProperties.symbols52 var v3: Partial<{ a: string, b: string }>;
54 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
63 var v4: Partial<{ a: string, b: string | undefined }>;
65 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
74 var v5: Required<Partial<{ a: string, b: string }>>;
77 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
86 var v6: Required<Partial<{ a: string, b: string | undefined }>>;
89 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
DinferenceOptionalPropertiesStrict.symbols52 var v3: Partial<{ a: string, b: string }>;
54 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
63 var v4: Partial<{ a: string, b: string | undefined }>;
65 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
74 var v5: Required<Partial<{ a: string, b: string }>>;
77 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
86 var v6: Required<Partial<{ a: string, b: string | undefined }>>;
89 >Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --))
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dlayout_test.cc92 SameType<int32_t, decltype(L::Partial())::ElementType<0>>(); in TEST()
93 SameType<int32_t, decltype(L::Partial(0))::ElementType<0>>(); in TEST()
99 SameType<int32_t, decltype(L::Partial())::ElementType<0>>(); in TEST()
100 SameType<int32_t, decltype(L::Partial())::ElementType<1>>(); in TEST()
101 SameType<int32_t, decltype(L::Partial(0))::ElementType<0>>(); in TEST()
102 SameType<int32_t, decltype(L::Partial(0))::ElementType<1>>(); in TEST()
109 SameType<int8_t, decltype(L::Partial())::ElementType<0>>(); in TEST()
110 SameType<int8_t, decltype(L::Partial(0))::ElementType<0>>(); in TEST()
111 SameType<int32_t, decltype(L::Partial(0))::ElementType<1>>(); in TEST()
112 SameType<int8_t, decltype(L::Partial(0, 0))::ElementType<0>>(); in TEST()
[all …]
/third_party/typescript/tests/cases/conformance/types/mapped/
DmappedTypes5.ts3 function f<T>(p: Partial<T>, r: Readonly<T>, pr: Partial<Readonly<T>>, rp: Readonly<Partial<T>>) {
4 let a1: Partial<T> = p;
5 let a2: Partial<T> = r;
6 let a3: Partial<T> = pr;
7 let a4: Partial<T> = rp;
12 let c1: Partial<Readonly<T>> = p;
13 let c2: Partial<Readonly<T>> = r;
14 let c3: Partial<Readonly<T>> = pr;
15 let c4: Partial<Readonly<T>> = rp;
16 let d1: Readonly<Partial<T>> = p;
[all …]
DmappedTypesArraysTuples.ts8 type T01 = Partial<[number, string?, ...boolean[]]>;
12 type T11 = Partial<string[]>;
15 type T14 = Partial<ReadonlyArray<string>>;
19 type T21 = Partial<(string | undefined)[]>;
22 type T24 = Partial<ReadonlyArray<string | undefined>>;
25 type T30 = Boxified<Partial<string[]>>;
26 type T31 = Partial<Boxified<string[]>>;
37 type T52 = Partial<Readonly<string[]>>;
38 type T53 = Readonly<Partial<string[]>>;
52 declare function nonpartial<T>(x: Partial<T>): T;
DmappedTypeModifiers.ts22 var v02: Partial<T>;
34 var v04: Partial<TR>;
36 var v04: Partial<Readonly<T>>;
37 var v04: Readonly<Partial<T>>;
61 var b02: Partial<B>;
73 var b04: Partial<BR>;
75 var b04: Partial<Readonly<B>>;
76 var b04: Readonly<Partial<B>>;
82 function f1(x: Partial<Foo>) {
/third_party/pcre2/pcre2/testdata/
Dtestoutput5829 Partial match: X
831 Partial match: Xa
833 Partial match: Xaa
835 Partial match: Xaaa
837 Partial match: Xaaaa
841 Partial match: X
843 Partial match: Xa
845 Partial match: Xaa
847 Partial match: Xaaa
849 Partial match: Xaaaa
[all …]

12345678910>>...19