|
| 1 | +=== tests/cases/conformance/classes/classDeclarations/mergedInheritedClassInterface.ts === |
| 2 | +interface BaseInterface { |
| 3 | +>BaseInterface : Symbol(BaseInterface, Decl(mergedInheritedClassInterface.ts, 0, 0)) |
| 4 | + |
| 5 | + required: number; |
| 6 | +>required : Symbol(required, Decl(mergedInheritedClassInterface.ts, 0, 25)) |
| 7 | + |
| 8 | + optional?: number; |
| 9 | +>optional : Symbol(optional, Decl(mergedInheritedClassInterface.ts, 1, 21)) |
| 10 | +} |
| 11 | + |
| 12 | +class BaseClass { |
| 13 | +>BaseClass : Symbol(BaseClass, Decl(mergedInheritedClassInterface.ts, 3, 1)) |
| 14 | + |
| 15 | + baseMethod() { } |
| 16 | +>baseMethod : Symbol(baseMethod, Decl(mergedInheritedClassInterface.ts, 5, 17)) |
| 17 | + |
| 18 | + baseNumber: number; |
| 19 | +>baseNumber : Symbol(baseNumber, Decl(mergedInheritedClassInterface.ts, 6, 20)) |
| 20 | +} |
| 21 | + |
| 22 | +interface Child extends BaseInterface { |
| 23 | +>Child : Symbol(Child, Decl(mergedInheritedClassInterface.ts, 8, 1), Decl(mergedInheritedClassInterface.ts, 12, 1)) |
| 24 | +>BaseInterface : Symbol(BaseInterface, Decl(mergedInheritedClassInterface.ts, 0, 0)) |
| 25 | + |
| 26 | + additional: number; |
| 27 | +>additional : Symbol(additional, Decl(mergedInheritedClassInterface.ts, 10, 39)) |
| 28 | +} |
| 29 | + |
| 30 | +class Child extends BaseClass { |
| 31 | +>Child : Symbol(Child, Decl(mergedInheritedClassInterface.ts, 8, 1), Decl(mergedInheritedClassInterface.ts, 12, 1)) |
| 32 | +>BaseClass : Symbol(BaseClass, Decl(mergedInheritedClassInterface.ts, 3, 1)) |
| 33 | + |
| 34 | + classNumber: number; |
| 35 | +>classNumber : Symbol(classNumber, Decl(mergedInheritedClassInterface.ts, 14, 31)) |
| 36 | + |
| 37 | + method() { } |
| 38 | +>method : Symbol(method, Decl(mergedInheritedClassInterface.ts, 15, 24)) |
| 39 | +} |
| 40 | + |
| 41 | +interface ChildNoBaseClass extends BaseInterface { |
| 42 | +>ChildNoBaseClass : Symbol(ChildNoBaseClass, Decl(mergedInheritedClassInterface.ts, 17, 1), Decl(mergedInheritedClassInterface.ts, 21, 1)) |
| 43 | +>BaseInterface : Symbol(BaseInterface, Decl(mergedInheritedClassInterface.ts, 0, 0)) |
| 44 | + |
| 45 | + additional2: string; |
| 46 | +>additional2 : Symbol(additional2, Decl(mergedInheritedClassInterface.ts, 19, 50)) |
| 47 | +} |
| 48 | +class ChildNoBaseClass { |
| 49 | +>ChildNoBaseClass : Symbol(ChildNoBaseClass, Decl(mergedInheritedClassInterface.ts, 17, 1), Decl(mergedInheritedClassInterface.ts, 21, 1)) |
| 50 | + |
| 51 | + classString: string; |
| 52 | +>classString : Symbol(classString, Decl(mergedInheritedClassInterface.ts, 22, 24)) |
| 53 | + |
| 54 | + method2() { } |
| 55 | +>method2 : Symbol(method2, Decl(mergedInheritedClassInterface.ts, 23, 24)) |
| 56 | +} |
| 57 | +class Grandchild extends ChildNoBaseClass { |
| 58 | +>Grandchild : Symbol(Grandchild, Decl(mergedInheritedClassInterface.ts, 25, 1)) |
| 59 | +>ChildNoBaseClass : Symbol(ChildNoBaseClass, Decl(mergedInheritedClassInterface.ts, 17, 1), Decl(mergedInheritedClassInterface.ts, 21, 1)) |
| 60 | +} |
| 61 | + |
| 62 | +// checks if properties actually were merged |
| 63 | +var child : Child; |
| 64 | +>child : Symbol(child, Decl(mergedInheritedClassInterface.ts, 30, 3)) |
| 65 | +>Child : Symbol(Child, Decl(mergedInheritedClassInterface.ts, 8, 1), Decl(mergedInheritedClassInterface.ts, 12, 1)) |
| 66 | + |
| 67 | +child.required; |
| 68 | +>child.required : Symbol(BaseInterface.required, Decl(mergedInheritedClassInterface.ts, 0, 25)) |
| 69 | +>child : Symbol(child, Decl(mergedInheritedClassInterface.ts, 30, 3)) |
| 70 | +>required : Symbol(BaseInterface.required, Decl(mergedInheritedClassInterface.ts, 0, 25)) |
| 71 | + |
| 72 | +child.optional; |
| 73 | +>child.optional : Symbol(BaseInterface.optional, Decl(mergedInheritedClassInterface.ts, 1, 21)) |
| 74 | +>child : Symbol(child, Decl(mergedInheritedClassInterface.ts, 30, 3)) |
| 75 | +>optional : Symbol(BaseInterface.optional, Decl(mergedInheritedClassInterface.ts, 1, 21)) |
| 76 | + |
| 77 | +child.additional; |
| 78 | +>child.additional : Symbol(Child.additional, Decl(mergedInheritedClassInterface.ts, 10, 39)) |
| 79 | +>child : Symbol(child, Decl(mergedInheritedClassInterface.ts, 30, 3)) |
| 80 | +>additional : Symbol(Child.additional, Decl(mergedInheritedClassInterface.ts, 10, 39)) |
| 81 | + |
| 82 | +child.baseNumber; |
| 83 | +>child.baseNumber : Symbol(BaseClass.baseNumber, Decl(mergedInheritedClassInterface.ts, 6, 20)) |
| 84 | +>child : Symbol(child, Decl(mergedInheritedClassInterface.ts, 30, 3)) |
| 85 | +>baseNumber : Symbol(BaseClass.baseNumber, Decl(mergedInheritedClassInterface.ts, 6, 20)) |
| 86 | + |
| 87 | +child.classNumber; |
| 88 | +>child.classNumber : Symbol(Child.classNumber, Decl(mergedInheritedClassInterface.ts, 14, 31)) |
| 89 | +>child : Symbol(child, Decl(mergedInheritedClassInterface.ts, 30, 3)) |
| 90 | +>classNumber : Symbol(Child.classNumber, Decl(mergedInheritedClassInterface.ts, 14, 31)) |
| 91 | + |
| 92 | +child.baseMethod(); |
| 93 | +>child.baseMethod : Symbol(BaseClass.baseMethod, Decl(mergedInheritedClassInterface.ts, 5, 17)) |
| 94 | +>child : Symbol(child, Decl(mergedInheritedClassInterface.ts, 30, 3)) |
| 95 | +>baseMethod : Symbol(BaseClass.baseMethod, Decl(mergedInheritedClassInterface.ts, 5, 17)) |
| 96 | + |
| 97 | +child.method(); |
| 98 | +>child.method : Symbol(Child.method, Decl(mergedInheritedClassInterface.ts, 15, 24)) |
| 99 | +>child : Symbol(child, Decl(mergedInheritedClassInterface.ts, 30, 3)) |
| 100 | +>method : Symbol(Child.method, Decl(mergedInheritedClassInterface.ts, 15, 24)) |
| 101 | + |
| 102 | +var grandchild: Grandchild; |
| 103 | +>grandchild : Symbol(grandchild, Decl(mergedInheritedClassInterface.ts, 39, 3)) |
| 104 | +>Grandchild : Symbol(Grandchild, Decl(mergedInheritedClassInterface.ts, 25, 1)) |
| 105 | + |
| 106 | +grandchild.required; |
| 107 | +>grandchild.required : Symbol(BaseInterface.required, Decl(mergedInheritedClassInterface.ts, 0, 25)) |
| 108 | +>grandchild : Symbol(grandchild, Decl(mergedInheritedClassInterface.ts, 39, 3)) |
| 109 | +>required : Symbol(BaseInterface.required, Decl(mergedInheritedClassInterface.ts, 0, 25)) |
| 110 | + |
| 111 | +grandchild.optional; |
| 112 | +>grandchild.optional : Symbol(BaseInterface.optional, Decl(mergedInheritedClassInterface.ts, 1, 21)) |
| 113 | +>grandchild : Symbol(grandchild, Decl(mergedInheritedClassInterface.ts, 39, 3)) |
| 114 | +>optional : Symbol(BaseInterface.optional, Decl(mergedInheritedClassInterface.ts, 1, 21)) |
| 115 | + |
| 116 | +grandchild.additional2; |
| 117 | +>grandchild.additional2 : Symbol(ChildNoBaseClass.additional2, Decl(mergedInheritedClassInterface.ts, 19, 50)) |
| 118 | +>grandchild : Symbol(grandchild, Decl(mergedInheritedClassInterface.ts, 39, 3)) |
| 119 | +>additional2 : Symbol(ChildNoBaseClass.additional2, Decl(mergedInheritedClassInterface.ts, 19, 50)) |
| 120 | + |
| 121 | +grandchild.classString; |
| 122 | +>grandchild.classString : Symbol(ChildNoBaseClass.classString, Decl(mergedInheritedClassInterface.ts, 22, 24)) |
| 123 | +>grandchild : Symbol(grandchild, Decl(mergedInheritedClassInterface.ts, 39, 3)) |
| 124 | +>classString : Symbol(ChildNoBaseClass.classString, Decl(mergedInheritedClassInterface.ts, 22, 24)) |
| 125 | + |
| 126 | +grandchild.method2(); |
| 127 | +>grandchild.method2 : Symbol(ChildNoBaseClass.method2, Decl(mergedInheritedClassInterface.ts, 23, 24)) |
| 128 | +>grandchild : Symbol(grandchild, Decl(mergedInheritedClassInterface.ts, 39, 3)) |
| 129 | +>method2 : Symbol(ChildNoBaseClass.method2, Decl(mergedInheritedClassInterface.ts, 23, 24)) |
| 130 | + |
0 commit comments