Home
last modified time | relevance | path

Searched refs:C1 (Results 1 – 25 of 87) sorted by relevance

1234

/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-class-definiton23.ts17 function C1() : C1 function
18 function C1() : any {}
19 declare class C1 {} class
26 function C1() : C1 function
27 function C1() : any {}
28 declare class C1 {} class
Dtest-class-definiton25.ts17 declare class C1 {} class
18 function C1() : C1 function
19 function C1() : any {}
26 declare class C1 {}
27 function C1() : C1
28 function C1() : any {}
Dtest-class-definiton24.ts18 class C1 {} class
19 function C1() : C1 function
20 function C1() : C1
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
Dm7Bugs.ts43 class C1 { class
47 class C2 extends C1 {}
49 let y1: C1 = new C2();
54 let y2: C1 = <C1> new C2();
56 AssertType(<C1> new C2(), "C1");
60 let y3: C1 = <C1> {};
62 AssertType(<C1> {}, "C1");
DtypeGuardOfFormInstanceOf.ts27 class C1 {
33 class D1 extends C1 {
48 let ctor1: C1 | C2;
51 str = ctor1 instanceof C1 && ctor1.p1; // C1
52 AssertType(str = ctor1 instanceof C1 && ctor1.p1, "string");
54 AssertType(ctor1 instanceof C1 && ctor1.p1, "string");
55 AssertType(ctor1 instanceof C1, "boolean");
57 AssertType(C1, "typeof C1");
117 let r2: D1 | C2 = ctor2 instanceof C1 && ctor2; // C2 | D1 variable
119 AssertType(ctor2 instanceof C1 && ctor2, "D1");
[all …]
DdeclarationEmitClassMemberNameConflict.ts21 export class C1 {
22 C1() { } // has to be the same as the class name
25 AssertType(function (t: typeof C1) { }, "(typeof C1) => void");
27 AssertType(C1, "typeof C1");
28 return function (t: typeof C1) {
DjsDeclarationsClassMethod.ts21 function C1() {
51 C1.prototype.method = function (x, y) {
52 AssertType(C1.prototype.method, "any");
56 AssertType(C1.prototype.method = function (x, y) { return x + y;}, "(number, number) => number");
71 C1.staticProp = function (x, y) {
72 AssertType(C1.staticProp, "(number, number) => number");
76 AssertType(C1.staticProp = function (x, y) { return x + y;}, "(number, number) => number");
DjsDeclarationsInheritedTypes.ts32 class C1 {
39 class C2 extends C1 {
46 class C3 extends C1 {
DmergeClassInterfaceAndModule.ts22 interface C1 {}
23 declare class C1 {} class
24 module C1 {}
DexportPrivateType.ts22 class C1 {
24 y: C1;
45 export let e: C1;
DmixinClassesMembers.ts21 declare class C1 {
41 declare const Mixed1: typeof M1 & typeof C1;
44 AssertType(C1, "typeof C1");
46 declare const Mixed2: typeof C1 & typeof M1;
48 AssertType(C1, "typeof C1");
51 declare const Mixed3: typeof M2 & typeof M1 & typeof C1;
55 AssertType(C1, "typeof C1");
57 declare const Mixed4: typeof C1 & typeof M1 & typeof M2;
59 AssertType(C1, "typeof C1");
DtypeGuardOfFormIsTypeOnInterfaces.ts21 interface C1 {
22 (): C1;
23 prototype: C1;
31 interface D1 extends C1 {
45 function isC1(x: any): x is C1 {
60 let c1: C1;
69 let c1Orc2: C1 | C2;
DtypeGuardOfFormInstanceOfOnInterface.ts27 interface C1 {
28 (): C1;
29 prototype: C1;
37 interface D1 extends C1 {
50 let c1: C1;
59 let c1Orc2: C1 | C2;
DsymbolProperty27.ts21 class C1 {
28 class C2 extends C1 {
DsymbolProperty26.ts21 class C1 {
28 class C2 extends C1 {
DrecursiveConditionalCrash1.ts22 type C1<T> = [T extends string ? C1<T> : never][0];
DsymbolProperty31.ts21 class C1 {
29 class C2 extends C1 {
DrecursiveBaseConstructorCreation1.ts21 class C1 {
24 class C2 extends C1 { }
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/amdImportNotAsPrimaryExpression/
Dfoo_1.ts28 let x: foo.C1 = <{m1: number}>{};
35 let y: typeof foo.C1.s1 = false;
37 AssertType(foo.C1.s1, "boolean");
38 AssertType(foo.C1, "typeof foo.C1");
40 AssertType(C1, "typeof foo.C1");
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/commonJSImportNotAsPrimaryExpression/
Dfoo_1.ts28 let x: foo.C1 = <{m1: number}>{};
35 let y: typeof foo.C1.s1 = false;
37 AssertType(foo.C1.s1, "boolean");
38 AssertType(foo.C1, "typeof foo.C1");
40 AssertType(C1, "typeof foo.C1");
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/exportNonVisibleType/
Dfoo3.ts27 class C1 { class
31 export default C1; // Should work, private type I1 of visible class C1 only used in private member …
Dfoo2.ts27 class C1 { class
31 export default C1; // Should fail, type I1 of visible member C1.m1 not exported.
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleImportedForTypeArgumentPosition/
DmoduleImportedForTypeArgumentPosition_1.ts24 class C1<T>{ }
25 class Test1 extends C1<M2.M2C> {
/arkcompiler/ets_runtime/test/quickfix/class_name/
Dbase.js17 class C1 { class
25 var c = new C1()
/arkcompiler/ets_runtime/test/quickfix/closure/
Dmodule.js22 function C1() { class in A1.B1
27 C1()

1234