/third_party/typescript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/ |
D | subtypingWithGenericConstructSignaturesWithOptionalParameters.ts | 92 interface Base2 { interface 100 interface I1<T> extends Base2 { 104 interface I2<T> extends Base2 { 108 interface I3<T> extends Base2 { 113 interface I4<T> extends Base2 { 117 interface I5<T> extends Base2 { 121 interface I6<T> extends Base2 { 126 interface I7<T> extends Base2 { 130 interface I8<T> extends Base2 { 134 interface I9<T> extends Base2 { [all …]
|
D | subtypingWithGenericCallSignaturesWithOptionalParameters.ts | 92 interface Base2 { interface 100 interface I1<T> extends Base2 { 104 interface I2<T> extends Base2 { 108 interface I3<T> extends Base2 { 113 interface I4<T> extends Base2 { 117 interface I5<T> extends Base2 { 121 interface I6<T> extends Base2 { 126 interface I7<T> extends Base2 { 130 interface I8<T> extends Base2 { 134 interface I9<T> extends Base2 { [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | subtypingWithGenericCallSignaturesWithOptionalParameters.js | 93 interface Base2 { 101 interface I1<T> extends Base2 { 105 interface I2<T> extends Base2 { 109 interface I3<T> extends Base2 { 114 interface I4<T> extends Base2 { 118 interface I5<T> extends Base2 { 122 interface I6<T> extends Base2 { 127 interface I7<T> extends Base2 { 131 interface I8<T> extends Base2 { 135 interface I9<T> extends Base2 { [all …]
|
D | subtypingWithGenericConstructSignaturesWithOptionalParameters.js | 93 interface Base2 { 101 interface I1<T> extends Base2 { 105 interface I2<T> extends Base2 { 109 interface I3<T> extends Base2 { 114 interface I4<T> extends Base2 { 118 interface I5<T> extends Base2 { 122 interface I6<T> extends Base2 { 127 interface I7<T> extends Base2 { 131 interface I8<T> extends Base2 { 135 interface I9<T> extends Base2 { [all …]
|
D | interfaceWithMultipleBaseTypes.symbols | 15 interface Base2 { 16 >Base2 : Symbol(Base2, Decl(interfaceWithMultipleBaseTypes.ts, 6, 1)) 19 >x : Symbol(Base2.x, Decl(interfaceWithMultipleBaseTypes.ts, 8, 17)) 26 interface Derived extends Base1, Base2 { 29 >Base2 : Symbol(Base2, Decl(interfaceWithMultipleBaseTypes.ts, 6, 1)) 40 interface Derived2 extends Base1, Base2 { // error 43 >Base2 : Symbol(Base2, Decl(interfaceWithMultipleBaseTypes.ts, 6, 1)) 70 interface Base2<T> { 71 >Base2 : Symbol(Base2, Decl(interfaceWithMultipleBaseTypes.ts, 31, 5)) 75 >x : Symbol(Base2.x, Decl(interfaceWithMultipleBaseTypes.ts, 33, 24)) [all …]
|
D | derivedClassConstructorWithoutSuperCall.types | 19 class Base2<T> { 20 >Base2 : Base2<T> 26 class Derived2<T> extends Base2<T> { 28 >Base2 : Base2<T> 39 class Derived3<T> extends Base2<T> { 41 >Base2 : Base2<T> 52 class Derived4<T> extends Base2<T> { 54 >Base2 : Base2<T> 60 >super : typeof Base2
|
D | assignmentCompatWithGenericCallSignaturesWithOptionalParameters.symbols | 179 class Base2 { 180 >Base2 : Symbol(Base2, Decl(assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts, 38,… 183 >a : Symbol(Base2.a, Decl(assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts, 40, 1… 188 >a2 : Symbol(Base2.a2, Decl(assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts, 41,… 195 >a3 : Symbol(Base2.a3, Decl(assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts, 42,… 202 >a4 : Symbol(Base2.a4, Decl(assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts, 43,… 211 >a5 : Symbol(Base2.a5, Decl(assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts, 44,… 262 var b: Base2; 264 >Base2 : Symbol(Base2, Decl(assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts, 38,… 273 >b.a : Symbol(Base2.a, Decl(assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts, 40,… [all …]
|
D | subtypingWithGenericCallSignaturesWithOptionalParameters.symbols | 287 interface Base2 { 288 >Base2 : Symbol(Base2, Decl(subtypingWithGenericCallSignaturesWithOptionalParameters.ts, 88, 33)) 291 >a : Symbol(Base2.a, Decl(subtypingWithGenericCallSignaturesWithOptionalParameters.ts, 91, 21)) 296 >a2 : Symbol(Base2.a2, Decl(subtypingWithGenericCallSignaturesWithOptionalParameters.ts, 92, 22)) 303 >a3 : Symbol(Base2.a3, Decl(subtypingWithGenericCallSignaturesWithOptionalParameters.ts, 93, 28)) 310 >a4 : Symbol(Base2.a4, Decl(subtypingWithGenericCallSignaturesWithOptionalParameters.ts, 94, 27)) 319 >a5 : Symbol(Base2.a5, Decl(subtypingWithGenericCallSignaturesWithOptionalParameters.ts, 95, 34)) 328 interface I1<T> extends Base2 { 331 >Base2 : Symbol(Base2, Decl(subtypingWithGenericCallSignaturesWithOptionalParameters.ts, 88, 33)) 338 interface I2<T> extends Base2 { [all …]
|
D | derivedClassConstructorWithoutSuperCall.symbols | 19 class Base2<T> { 20 >Base2 : Symbol(Base2, Decl(derivedClassConstructorWithoutSuperCall.ts, 9, 1)) 24 >x : Symbol(Base2.x, Decl(derivedClassConstructorWithoutSuperCall.ts, 11, 16)) 28 class Derived2<T> extends Base2<T> { 31 >Base2 : Symbol(Base2, Decl(derivedClassConstructorWithoutSuperCall.ts, 9, 1)) 40 class Derived3<T> extends Base2<T> { 43 >Base2 : Symbol(Base2, Decl(derivedClassConstructorWithoutSuperCall.ts, 9, 1)) 52 class Derived4<T> extends Base2<T> { 55 >Base2 : Symbol(Base2, Decl(derivedClassConstructorWithoutSuperCall.ts, 9, 1)) 61 >super : Symbol(Base2, Decl(derivedClassConstructorWithoutSuperCall.ts, 9, 1))
|
D | subtypingWithGenericConstructSignaturesWithOptionalParameters.symbols | 287 interface Base2 { 288 >Base2 : Symbol(Base2, Decl(subtypingWithGenericConstructSignaturesWithOptionalParameters.ts, 88, 3… 291 >a : Symbol(Base2.a, Decl(subtypingWithGenericConstructSignaturesWithOptionalParameters.ts, 91, 21)) 296 >a2 : Symbol(Base2.a2, Decl(subtypingWithGenericConstructSignaturesWithOptionalParameters.ts, 92, 2… 303 >a3 : Symbol(Base2.a3, Decl(subtypingWithGenericConstructSignaturesWithOptionalParameters.ts, 93, 3… 310 >a4 : Symbol(Base2.a4, Decl(subtypingWithGenericConstructSignaturesWithOptionalParameters.ts, 94, 3… 319 >a5 : Symbol(Base2.a5, Decl(subtypingWithGenericConstructSignaturesWithOptionalParameters.ts, 95, 3… 328 interface I1<T> extends Base2 { 331 >Base2 : Symbol(Base2, Decl(subtypingWithGenericConstructSignaturesWithOptionalParameters.ts, 88, 3… 338 interface I2<T> extends Base2 { [all …]
|
D | interfaceWithMultipleBaseTypes2.symbols | 14 interface Base2 { 15 >Base2 : Symbol(Base2, Decl(interfaceWithMultipleBaseTypes2.ts, 4, 1)) 18 >x : Symbol(Base2.x, Decl(interfaceWithMultipleBaseTypes2.ts, 6, 17)) 26 interface Derived extends Base, Base2 { 29 >Base2 : Symbol(Base2, Decl(interfaceWithMultipleBaseTypes2.ts, 4, 1)) 36 interface Derived2 extends Base, Base2 { // error 39 >Base2 : Symbol(Base2, Decl(interfaceWithMultipleBaseTypes2.ts, 4, 1)) 47 interface Derived3 extends Base, Base2 { 50 >Base2 : Symbol(Base2, Decl(interfaceWithMultipleBaseTypes2.ts, 4, 1))
|
D | interfaceWithMultipleBaseTypes.js | 10 interface Base2 { 16 interface Derived extends Base1, Base2 { 22 interface Derived2 extends Base1, Base2 { // error 35 interface Base2<T> { 41 interface Derived<T> extends Base1<string>, Base2<number> { 47 interface Derived2<T, U> extends Base1<T>, Base2<U> { 53 interface Derived3<T> extends Base1<number>, Base2<number> { } // error 55 interface Derived4<T> extends Base1<number>, Base2<number> { // error 61 interface Derived5<T> extends Base1<T>, Base2<T> { // error
|
D | derivedClassConstructorWithoutSuperCall.js | 13 class Base2<T> { class 17 class Derived2<T> extends Base2<T> { 23 class Derived3<T> extends Base2<T> { 29 class Derived4<T> extends Base2<T> { 65 var Base2 = /** @class */ (function () { 66 function Base2() { class in Base2 68 return Base2; 78 }(Base2)); 87 }(Base2)); 96 }(Base2));
|
D | interfaceWithMultipleBaseTypes.errors.txt | 1 …tipleBaseTypes.ts(21,11): error TS2430: Interface 'Derived2' incorrectly extends interface 'Base2'. 4 …20: Interface 'Derived3<T>' cannot simultaneously extend types 'Base1<number>' and 'Base2<number>'. 5 Named property 'x' of types 'Base1<number>' and 'Base2<number>' are not identical. 9 …pes.ts(54,15): error TS2430: Interface 'Derived4<T>' incorrectly extends interface 'Base2<number>'. 15 …aseTypes.ts(60,15): error TS2430: Interface 'Derived5<T>' incorrectly extends interface 'Base2<T>'. 29 interface Base2 { 35 interface Derived extends Base1, Base2 { 41 interface Derived2 extends Base1, Base2 { // error 43 !!! error TS2430: Interface 'Derived2' incorrectly extends interface 'Base2'. 58 interface Base2<T> { [all …]
|
D | subtypingWithGenericCallSignaturesWithOptionalParameters.types | 144 interface Base2 { 167 interface I1<T> extends Base2 { 172 interface I2<T> extends Base2 { 178 interface I3<T> extends Base2 { 185 interface I4<T> extends Base2 { 190 interface I5<T> extends Base2 { 196 interface I6<T> extends Base2 { 203 interface I7<T> extends Base2 { 208 interface I8<T> extends Base2 { 214 interface I9<T> extends Base2 { [all …]
|
D | constructSignatureAssignabilityInInheritance.symbols | 33 interface Base2 { // T 34 >Base2 : Symbol(Base2, Decl(constructSignatureAssignabilityInInheritance.ts, 14, 5)) 42 interface I2 extends Base2 { 44 >Base2 : Symbol(Base2, Decl(constructSignatureAssignabilityInInheritance.ts, 14, 5)) 52 interface I3 extends Base2 { 54 >Base2 : Symbol(Base2, Decl(constructSignatureAssignabilityInInheritance.ts, 14, 5)) 119 interface Base2 { // T 120 >Base2 : Symbol(Base2, Decl(constructSignatureAssignabilityInInheritance.ts, 51, 5)) 124 >a : Symbol(Base2.a, Decl(constructSignatureAssignabilityInInheritance.ts, 53, 21)) 128 >a2 : Symbol(Base2.a2, Decl(constructSignatureAssignabilityInInheritance.ts, 55, 37)) [all …]
|
D | callSignatureAssignabilityInInheritance.symbols | 36 interface Base2 { // T 37 >Base2 : Symbol(Base2, Decl(callSignatureAssignabilityInInheritance.ts, 13, 5)) 45 interface I2 extends Base2 { 47 >Base2 : Symbol(Base2, Decl(callSignatureAssignabilityInInheritance.ts, 13, 5)) 55 interface I3 extends Base2 { 57 >Base2 : Symbol(Base2, Decl(callSignatureAssignabilityInInheritance.ts, 13, 5)) 112 interface Base2 { // T 113 >Base2 : Symbol(Base2, Decl(callSignatureAssignabilityInInheritance.ts, 47, 5)) 117 >a : Symbol(Base2.a, Decl(callSignatureAssignabilityInInheritance.ts, 49, 21)) 121 >a2 : Symbol(Base2.a2, Decl(callSignatureAssignabilityInInheritance.ts, 51, 33)) [all …]
|
D | classWithBaseClassButNoConstructor.types | 32 class Base2<T,U> { 33 >Base2 : Base2<T, U> 39 class D<T,U> extends Base2<T,U> { 41 >Base2 : Base2<T, U> 63 class D2<T, U> extends Base2<string, number> { 65 >Base2 : Base2<string, number> 86 class D3 extends Base2<string, number> { 88 >Base2 : Base2<string, number>
|
D | classWithBaseClassButNoConstructor.js | 14 class Base2<T,U> { class 18 class D<T,U> extends Base2<T,U> { 27 class D2<T, U> extends Base2<string, number> { 35 class D3 extends Base2<string, number> { 74 var Base2 = /** @class */ (function () { 75 function Base2(x) { class in Base2 77 return Base2; 85 }(Base2)); 96 }(Base2)); 106 }(Base2));
|
D | subtypingWithGenericConstructSignaturesWithOptionalParameters.types | 144 interface Base2 { 167 interface I1<T> extends Base2 { 172 interface I2<T> extends Base2 { 178 interface I3<T> extends Base2 { 185 interface I4<T> extends Base2 { 190 interface I5<T> extends Base2 { 196 interface I6<T> extends Base2 { 203 interface I7<T> extends Base2 { 208 interface I8<T> extends Base2 { 214 interface I9<T> extends Base2 { [all …]
|
D | subtypesOfTypeParameterWithRecursiveConstraints.js | 110 class Base2<T> { class 114 class D1<T extends Foo<U>, U extends Foo<T>, V extends Foo<V>> extends Base2<T> { 119 class D2<T extends Foo<U>, U extends Foo<T>, V extends Foo<V>> extends Base2<T> { 124 class D3<T extends Foo<U>, U extends Foo<T>, V extends Foo<V>> extends Base2<T> { 129 class D4<T extends Foo<U>, U extends Foo<T>, V extends Foo<V>> extends Base2<U> { 134 class D5<T extends Foo<U>, U extends Foo<T>, V extends Foo<V>> extends Base2<U> { 139 class D6<T extends Foo<U>, U extends Foo<T>, V extends Foo<V>> extends Base2<U> { 144 class D7<T extends Foo<U>, U extends Foo<T>, V extends Foo<V>> extends Base2<V> { 149 class D8<T extends Foo<U>, U extends Foo<T>, V extends Foo<V>> extends Base2<V> { 154 class D9<T extends Foo<U>, U extends Foo<T>, V extends Foo<V>> extends Base2<V> { [all …]
|
/third_party/boost/libs/serialization/test/ |
D | test_multiple_inheritance.cpp | 47 struct Base2 { struct 49 Base2(){} in Base2() argument 50 Base2(int x) : m_x(2 + x) {} in Base2() argument 51 virtual ~Base2() {} in ~Base2() argument 52 bool operator==(Base2 & rhs) const { in operator ==() argument 67 public Base2 73 Base2(x), in Sub() 77 if(! Base2::operator==(rhs)) in operator ==() 91 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base2); in serialize() 103 Base2 * pb2; in BOOST_CLASS_EXPORT() [all …]
|
D | test_void_cast.cpp | 21 class Base2 class 26 class Derived : public Base1, public Base2 50 Base2* pb2 = static_cast<Base2*>(pmd); in test_main() 71 eti<Base2>(), in test_main() 76 eti<Base2>(), in test_main() 104 eti<Base2>(), in test_main() 109 eti<Base2>(), in test_main() 129 eti<Base2>(), in test_main() 134 eti<Base2>(), in test_main() 140 eti<Base2>(), in test_main() [all …]
|
D | test_smart_cast.cpp | 23 class Base2 class 33 class Derived : public Base1, public Base2 49 Base2 & b2 = static_cast<Base2 &>(d); in test_static_reference_cast_2() 52 Base2 & scb2 = smart_cast<Base2 &, Derived &>(d); in test_static_reference_cast_2() 64 & smart_cast<Base2 &, Derived &>( in test_static_reference_cast_2() 73 Base2 & b2 = static_cast<Base2 &>(d); in test_static_reference_cast_1() 76 Base2 & scb2 = smart_cast_reference<Base2 &>(d); in test_static_reference_cast_1() 88 & smart_cast_reference<Base2 &>( in test_static_reference_cast_1() 99 Base2 *pB2 = pD; in test_static_pointer_cast() 103 BOOST_CHECK_EQUAL(pB2, smart_cast<Base2 *>(pD)); in test_static_pointer_cast() [all …]
|
/third_party/typescript/tests/cases/conformance/interfaces/interfaceDeclarations/ |
D | interfaceWithMultipleBaseTypes.ts | 9 interface Base2 { interface 15 interface Derived extends Base1, Base2 { 21 interface Derived2 extends Base1, Base2 { // error 34 interface Base2<T> { interface 40 interface Derived<T> extends Base1<string>, Base2<number> { 46 interface Derived2<T, U> extends Base1<T>, Base2<U> { 52 interface Derived3<T> extends Base1<number>, Base2<number> { } // error 54 interface Derived4<T> extends Base1<number>, Base2<number> { // error 60 interface Derived5<T> extends Base1<T>, Base2<T> { // error
|