/arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
D | test-class-definiton23.ts | 17 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
|
D | test-class-definiton25.ts | 17 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 {}
|
D | test-class-definiton24.ts | 18 class C1 {} class 19 function C1() : C1 function 20 function C1() : C1
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | m7Bugs.ts | 43 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");
|
D | typeGuardOfFormInstanceOf.ts | 27 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 …]
|
D | declarationEmitClassMemberNameConflict.ts | 21 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) {
|
D | jsDeclarationsClassMethod.ts | 21 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");
|
D | jsDeclarationsInheritedTypes.ts | 32 class C1 { 39 class C2 extends C1 { 46 class C3 extends C1 {
|
D | mergeClassInterfaceAndModule.ts | 22 interface C1 {} 23 declare class C1 {} class 24 module C1 {}
|
D | exportPrivateType.ts | 22 class C1 { 24 y: C1; 45 export let e: C1;
|
D | mixinClassesMembers.ts | 21 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");
|
D | typeGuardOfFormIsTypeOnInterfaces.ts | 21 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;
|
D | typeGuardOfFormInstanceOfOnInterface.ts | 27 interface C1 { 28 (): C1; 29 prototype: C1; 37 interface D1 extends C1 { 50 let c1: C1; 59 let c1Orc2: C1 | C2;
|
D | symbolProperty27.ts | 21 class C1 { 28 class C2 extends C1 {
|
D | symbolProperty26.ts | 21 class C1 { 28 class C2 extends C1 {
|
D | recursiveConditionalCrash1.ts | 22 type C1<T> = [T extends string ? C1<T> : never][0];
|
D | symbolProperty31.ts | 21 class C1 { 29 class C2 extends C1 {
|
D | recursiveBaseConstructorCreation1.ts | 21 class C1 { 24 class C2 extends C1 { }
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/amdImportNotAsPrimaryExpression/ |
D | foo_1.ts | 28 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/ |
D | foo_1.ts | 28 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/ |
D | foo3.ts | 27 class C1 { class 31 export default C1; // Should work, private type I1 of visible class C1 only used in private member …
|
D | foo2.ts | 27 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/ |
D | moduleImportedForTypeArgumentPosition_1.ts | 24 class C1<T>{ } 25 class Test1 extends C1<M2.M2C> {
|
/arkcompiler/ets_runtime/test/quickfix/class_name/ |
D | base.js | 17 class C1 { class 25 var c = new C1()
|
/arkcompiler/ets_runtime/test/quickfix/closure/ |
D | module.js | 22 function C1() { class in A1.B1 27 C1()
|