Home
last modified time | relevance | path

Searched full:new (Results 1 – 25 of 11808) sorted by relevance

12345678910>>...473

/third_party/typescript/tests/baselines/reference/
DunionTypeConstructSignatures.types13 var unionOfDifferentReturnType: { new (a: number): number; } | { new (a: number): Date; };
14 >unionOfDifferentReturnType : (new (a: number) => number) | (new (a: number) => Date)
18 numOrDate = new unionOfDifferentReturnType(10);
19 >numOrDate = new unionOfDifferentReturnType(10) : number | Date
21 >new unionOfDifferentReturnType(10) : number | Date
22 >unionOfDifferentReturnType : (new (a: number) => number) | (new (a: number) => Date)
25 strOrBoolean = new unionOfDifferentReturnType("hello"); // error
26 >strOrBoolean = new unionOfDifferentReturnType("hello") : number | Date
28 >new unionOfDifferentReturnType("hello") : number | Date
29 >unionOfDifferentReturnType : (new (a: number) => number) | (new (a: number) => Date)
[all …]
DsubtypingWithConstructSignatures2.types23 declare function foo1(a: new (x: number) => number[]): typeof a;
24 >foo1 : { (a: new (x: number) => number[]): typeof a; (a: any): any; }
25 >a : new (x: number) => number[]
27 >a : new (x: number) => number[]
30 >foo1 : { (a: new (x: number) => number[]): new (x: number) => number[]; (a: any): any; }
33 declare function foo2(a: new (x: number) => string[]): typeof a;
34 >foo2 : { (a: new (x: number) => string[]): typeof a; (a: any): any; }
35 >a : new (x: number) => string[]
37 >a : new (x: number) => string[]
40 >foo2 : { (a: new (x: number) => string[]): new (x: number) => string[]; (a: any): any; }
[all …]
DsubtypingWithConstructSignatures3.types27 declare function foo2(a2: new (x: number) => string[]): typeof a2;
28 >foo2 : { (a2: new (x: number) => string[]): new (x: number) => string[]; (a2: any): any; }
29 >a2 : new (x: number) => string[]
31 >a2 : new (x: number) => string[]
34 >foo2 : { (a2: new (x: number) => string[]): new (x: number) => string[]; (a2: any): any; }
37 …declare function foo7(a2: new (x: new (arg: Base) => Derived) => new (r: Base) => Derived2): typeo…
38 >foo7 : { (a2: new (x: new (arg: Base) => Derived) => new (r: Base) => Derived2): new (x: new (arg:…
39 >a2 : new (x: new (arg: Base) => Derived) => new (r: Base) => Derived2
40 >x : new (arg: Base) => Derived
43 >a2 : new (x: new (arg: Base) => Derived) => new (r: Base) => Derived2
[all …]
DprivacyVar.js17 private C3_v11_private = new C1_public();
18 public C3_v12_public = new C1_public();
19 private C3_v13_private = new C2_private();
20 public C3_v14_public = new C2_private(); // error
22 private C3_v21_private: C1_public = new C1_public();
23 public C3_v22_public: C1_public = new C1_public();
24 private C3_v23_private: C2_private = new C2_private();
25 public C3_v24_public: C2_private = new C2_private(); // error
34 private C4_v11_private = new C1_public();
35 public C4_v12_public = new C1_public();
[all …]
DgenericCallWithOverloadedConstructorTypedArguments.types9 >a : { new (x: boolean): boolean; new (x: string): string; }
11 new(x: boolean): boolean;
14 new(x: string): string;
20 >cb : { new (x: boolean): boolean; new (x: string): string; }
21 >a : { new (x: boolean): boolean; new (x: string): string; }
23 return new cb(null);
24 >new cb(null) : boolean
25 >cb : { new (x: boolean): boolean; new (x: string): string; }
32 >foo4 : (cb: { new (x: boolean): boolean; new (x: string): string; }) => boolean
33 >a : { new (x: boolean): boolean; new (x: string): string; }
[all …]
DprivacyVar.types32 private C3_v11_private = new C1_public();
34 >new C1_public() : C1_public
37 public C3_v12_public = new C1_public();
39 >new C1_public() : C1_public
42 private C3_v13_private = new C2_private();
44 >new C2_private() : C2_private
47 public C3_v14_public = new C2_private(); // error
49 >new C2_private() : C2_private
52 private C3_v21_private: C1_public = new C1_public();
54 >new C1_public() : C1_public
[all …]
DunionTypeConstructSignatures.js8 var unionOfDifferentReturnType: { new (a: number): number; } | { new (a: number): Date; };
9 numOrDate = new unionOfDifferentReturnType(10);
10 strOrBoolean = new unionOfDifferentReturnType("hello"); // error
11 new unionOfDifferentReturnType1(true); // error in type of parameter
13 var unionOfDifferentReturnType1: { new (a: number): number; new (a: string): string; } | { new (a: …
14 numOrDate = new unionOfDifferentReturnType1(10);
15 strOrBoolean = new unionOfDifferentReturnType1("hello");
16 new unionOfDifferentReturnType1(true); // error in type of parameter
17 new unionOfDifferentReturnType1(); // error missing parameter
19 var unionOfDifferentParameterTypes: { new (a: number): number; } | { new (a: string): Date; };
[all …]
DassignmentCompatWithConstructSignatures5.types23 var a: new <T>(x: T) => T[];
24 >a : new <T>(x: T) => T[]
27 var a2: new <T>(x: T) => string[];
28 >a2 : new <T>(x: T) => string[]
31 var a3: new <T>(x: T) => void;
32 >a3 : new <T>(x: T) => void
35 var a4: new <T, U>(x: T, y: U) => string;
36 >a4 : new <T, U>(x: T, y: U) => string
40 var a5: new <T, U>(x: new (arg: T) => U) => T;
41 >a5 : new <T, U>(x: new (arg: T) => U) => T
[all …]
DassignmentCompatWithConstructSignaturesWithOptionalParameters.types5 a: new () => number;
6 >a : new () => number
8 a2: new (x?: number) => number;
9 >a2 : new (x?: number) => number
12 a3: new (x: number) => number;
13 >a3 : new (x: number) => number
16 a4: new (x: number, y?: number) => number;
17 >a4 : new (x: number, y?: number) => number
21 a5: new (x?: number, y?: number) => number;
22 >a5 : new (x?: number, y?: number) => number
[all …]
DgenericCallWithOverloadedConstructorTypedArguments2.types9 >a : { new (x: boolean): boolean; new (x: string): string; }
11 new(x: boolean): boolean;
14 new(x: string): string;
19 >foo4 : (cb: typeof a) => { new (x: boolean): boolean; new (x: string): string; }
20 >cb : { new (x: boolean): boolean; new (x: string): string; }
21 >a : { new (x: boolean): boolean; new (x: string): string; }
24 >cb : { new (x: boolean): boolean; new (x: string): string; }
27 var b: { new <T, U>(x: T): U }
28 >b : new <T, U>(x: T) => U
32 >r3 : { new (x: boolean): boolean; new (x: string): string; }
[all …]
DcomparisonOperatorWithSubtypeObjectOnConstructorSignature.types17 var a1: { new (): Base };
18 >a1 : new () => Base
20 var b1: { new (): Base };
21 >b1 : new () => Base
23 var a2: { new (a: number, b: string): Base };
24 >a2 : new (a: number, b: string) => Base
28 var b2: { new (a: number, b: string): Base };
29 >b2 : new (a: number, b: string) => Base
33 var a3: { new (a: number, b: string): Base };
34 >a3 : new (a: number, b: string) => Base
[all …]
DsubtypingWithConstructSignatures4.types23 declare function foo1(a: new <T>(x: T) => T[]);
24 >foo1 : { (a: new <T>(x: T) => T[]): any; (a: any): any; }
25 >a : new <T>(x: T) => T[]
29 >foo1 : { (a: new <T>(x: T) => T[]): any; (a: any): any; }
32 declare function foo2(a2: new <T>(x: T) => string[]);
33 >foo2 : { (a2: new <T>(x: T) => string[]): any; (a: any): any; }
34 >a2 : new <T>(x: T) => string[]
38 >foo2 : { (a2: new <T>(x: T) => string[]): any; (a: any): any; }
41 declare function foo3(a3: new <T>(x: T) => void);
42 >foo3 : { (a3: new <T>(x: T) => void): any; (a: any): any; }
[all …]
DassignmentCompatWithConstructSignatures3.types23 var a: new (x: number) => number[];
24 >a : new (x: number) => number[]
27 var a2: new (x: number) => string[];
28 >a2 : new (x: number) => string[]
31 var a3: new (x: number) => void;
32 >a3 : new (x: number) => void
35 var a4: new (x: string, y: number) => string;
36 >a4 : new (x: string, y: number) => string
40 var a5: new (x: (arg: string) => number) => string;
41 >a5 : new (x: (arg: string) => number) => string
[all …]
DassignmentCompatWithConstructSignatures4.types30 var a2: new (x: number) => string[];
31 >a2 : new (x: number) => string[]
34 var a7: new (x: (arg: Base) => Derived) => (r: Base) => Derived2;
35 >a7 : new (x: (arg: Base) => Derived) => (r: Base) => Derived2
40 var a8: new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived;
41 >a8 : new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived
48 var a10: new (...x: Base[]) => Base;
49 >a10 : new (...x: Base[]) => Base
52 var a11: new (x: { foo: string }, y: { foo: string; bar: string }) => Base;
53 >a11 : new (x: { foo: string;}, y: { foo: string; bar: string;}) => Base
[all …]
DcomparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.types24 var a1: { new <T>(x: T): T };
25 >a1 : new <T>(x: T) => T
28 var b1: { new (): string };
29 >b1 : new () => string
31 var a2: { new <T>(x: T): T };
32 >a2 : new <T>(x: T) => T
35 var b2: { new (x: string): number };
36 >b2 : new (x: string) => number
39 var a3: { new <T>(x?: T): T };
40 >a3 : new <T>(x?: T) => T
[all …]
/third_party/selinux/libsepol/cil/src/
Dcil_copy_ast.c53 struct cil_list *new; in cil_copy_list() local
56 cil_list_init(&new, data->flavor); in cil_copy_list()
61 cil_list_append(new, CIL_STRING, orig_item->data); in cil_copy_list()
66 cil_list_append(new, CIL_LIST, new_sub); in cil_copy_list()
75 cil_list_append(new, CIL_PARAM, pn); in cil_copy_list()
80 cil_list_append(new, orig_item->flavor, orig_item->data); in cil_copy_list()
85 *copy = new; in cil_copy_list()
90 char *new = NULL; in cil_copy_node() local
93 new = data; in cil_copy_node()
95 *copy = new; in cil_copy_node()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cDirectStateAccessTests.cpp65 addChild(new TransformFeedback::CreationTest(m_context)); in init()
66 addChild(new TransformFeedback::DefaultsTest(m_context)); in init()
67 addChild(new TransformFeedback::BuffersTest(m_context)); in init()
68 addChild(new TransformFeedback::ErrorsTest(m_context)); in init()
69 addChild(new TransformFeedback::FunctionalTest(m_context)); in init()
72 addChild(new Samplers::CreationTest(m_context)); in init()
73 addChild(new Samplers::DefaultsTest(m_context)); in init()
74 addChild(new Samplers::ErrorsTest(m_context)); in init()
75 addChild(new Samplers::FunctionalTest(m_context)); in init()
78 addChild(new ProgramPipelines::CreationTest(m_context)); in init()
[all …]
/third_party/typescript/tests/cases/compiler/
DprivacyVar.ts17 private C3_v11_private = new C1_public();
18 public C3_v12_public = new C1_public();
19 private C3_v13_private = new C2_private();
20 public C3_v14_public = new C2_private(); // error
22 private C3_v21_private: C1_public = new C1_public();
23 public C3_v22_public: C1_public = new C1_public();
24 private C3_v23_private: C2_private = new C2_private();
25 public C3_v24_public: C2_private = new C2_private(); // error
34 private C4_v11_private = new C1_public();
35 public C4_v12_public = new C1_public();
[all …]
/third_party/typescript/src/linter/ArkTSLinter_1_1/
DProblems.ts60 faultsAttrs[FaultID.LiteralAsPropertyName] = new FaultAttributes(1, true);
61 faultsAttrs[FaultID.ComputedPropertyName] = new FaultAttributes(1);
62 faultsAttrs[FaultID.SymbolType] = new FaultAttributes(2);
63 faultsAttrs[FaultID.PrivateIdentifier] = new FaultAttributes(3, true);
64 faultsAttrs[FaultID.DeclWithDuplicateName] = new FaultAttributes(4, true);
65 faultsAttrs[FaultID.VarDeclaration] = new FaultAttributes(5, true);
66 faultsAttrs[FaultID.AnyType] = new FaultAttributes(8);
67 faultsAttrs[FaultID.UnknownType] = new FaultAttributes(8);
68 faultsAttrs[FaultID.CallSignature] = new FaultAttributes(14);
69 faultsAttrs[FaultID.ConstructorType] = new FaultAttributes(15);
[all …]
/third_party/lame/test/
DVBR.op98 --vbr-new -V9 -q0
99 --vbr-new -V9 -q1
100 --vbr-new -V9 -q2
101 --vbr-new -V9 -q3
102 --vbr-new -V9 -q4
103 --vbr-new -V9 -q5
104 --vbr-new -V9 -q6
105 --vbr-new -V9 -q7
106 --vbr-new -V9 -q8
107 --vbr-new -V9 -q9
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/
DIslamicTest.java58 int[][] tests = new int[][] { in TestRoll()
100 new TestCase(1507231.5, 0, -1245, 12, 9, SUN, 0, 0, 0), in TestCivilCases()
101 new TestCase(1660037.5, 0, -813, 2, 23, WED, 0, 0, 0), in TestCivilCases()
102 new TestCase(1746893.5, 0, -568, 4, 1, WED, 0, 0, 0), in TestCivilCases()
103 new TestCase(1770641.5, 0, -501, 4, 6, SUN, 0, 0, 0), in TestCivilCases()
104 new TestCase(1892731.5, 0, -157, 10, 17, WED, 0, 0, 0), in TestCivilCases()
105 new TestCase(1931579.5, 0, -47, 6, 3, MON, 0, 0, 0), in TestCivilCases()
106 new TestCase(1974851.5, 0, 75, 7, 13, SAT, 0, 0, 0), in TestCivilCases()
107 new TestCase(2091164.5, 0, 403, 10, 5, SUN, 0, 0, 0), in TestCivilCases()
108 new TestCase(2121509.5, 0, 489, 5, 22, SUN, 0, 0, 0), in TestCivilCases()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DIslamicTest.java55 int[][] tests = new int[][] { in TestRoll()
97 new TestCase(1507231.5, 0, -1245, 12, 9, SUN, 0, 0, 0), in TestCivilCases()
98 new TestCase(1660037.5, 0, -813, 2, 23, WED, 0, 0, 0), in TestCivilCases()
99 new TestCase(1746893.5, 0, -568, 4, 1, WED, 0, 0, 0), in TestCivilCases()
100 new TestCase(1770641.5, 0, -501, 4, 6, SUN, 0, 0, 0), in TestCivilCases()
101 new TestCase(1892731.5, 0, -157, 10, 17, WED, 0, 0, 0), in TestCivilCases()
102 new TestCase(1931579.5, 0, -47, 6, 3, MON, 0, 0, 0), in TestCivilCases()
103 new TestCase(1974851.5, 0, 75, 7, 13, SAT, 0, 0, 0), in TestCivilCases()
104 new TestCase(2091164.5, 0, 403, 10, 5, SUN, 0, 0, 0), in TestCivilCases()
105 new TestCase(2121509.5, 0, 489, 5, 22, SUN, 0, 0, 0), in TestCivilCases()
[all …]
/third_party/typescript/tests/arkTSTest/testcase/arkts-no-structural-typing/
Darkts-no-structural-typing-11-error.ets29 const sc1:SC1 = new SC1();
30 const nc1:NC1 = new NC1();
31 const sc2:SC2 = new SC2();
32 const nc2:NC2 = new NC2();
33 const sct1:SCT1<number> = new SCT1();
34 const nct1:NCT1<number> = new NCT1();
35 const sct2:SCT2<number> = new SCT2();
36 const nct2:NCT2<number> = new NCT2();
41 let a1: SC1 = new NC1(); // ERROR
42 a1 = new NC1();// ERROR
[all …]
/third_party/typescript/tests/cases/conformance/types/union/
DunionTypeConstructSignatures.ts7 var unionOfDifferentReturnType: { new (a: number): number; } | { new (a: number): Date; };
8 numOrDate = new unionOfDifferentReturnType(10);
9 strOrBoolean = new unionOfDifferentReturnType("hello"); // error
10 new unionOfDifferentReturnType1(true); // error in type of parameter
12 var unionOfDifferentReturnType1: { new (a: number): number; new (a: string): string; } | { new (a: …
13 numOrDate = new unionOfDifferentReturnType1(10);
14 strOrBoolean = new unionOfDifferentReturnType1("hello");
15 new unionOfDifferentReturnType1(true); // error in type of parameter
16 new unionOfDifferentReturnType1(); // error missing parameter
18 var unionOfDifferentParameterTypes: { new (a: number): number; } | { new (a: string): Date; };
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fFunctionalTests.cpp182 addChild(new ShaderCommonFunctionTests (m_context)); in init()
183 addChild(new ShaderPackingFunctionTests (m_context)); in init()
198 addChild(new ShaderLibraryTest (m_context, "preprocessor", "Preprocessor Tests")); in init()
199 addChild(new ShaderLibraryTest (m_context, "constants", "Constant Literal Tests")); in init()
200 addChild(new ShaderLibraryTest (m_context, "linkage", "Linkage Tests")); in init()
201 addChild(new ShaderLibraryTest (m_context, "conversions", "Type Conversion Tests")); in init()
202 addChild(new ShaderLibraryTest (m_context, "conditionals", "Conditionals Tests")); in init()
203 addChild(new ShaderLibraryTest (m_context, "declarations", "Declarations Tests")); in init()
204 addChild(new ShaderLibraryTest (m_context, "swizzles", "Swizzle Tests")); in init()
205 …addChild(new ShaderLibraryTest (m_context, "swizzle_math_operations", "Swizzle Math Operations … in init()
[all …]

12345678910>>...473