Home
last modified time | relevance | path

Searched refs:Base1 (Results 1 – 25 of 40) sorted by relevance

12

/third_party/typescript/tests/baselines/reference/
DinterfaceWithMultipleBaseTypes.symbols4 interface Base1 {
5 >Base1 : Symbol(Base1, Decl(interfaceWithMultipleBaseTypes.ts, 0, 0))
8 >x : Symbol(Base1.x, Decl(interfaceWithMultipleBaseTypes.ts, 2, 17))
26 interface Derived extends Base1, Base2 {
28 >Base1 : Symbol(Base1, Decl(interfaceWithMultipleBaseTypes.ts, 0, 0))
40 interface Derived2 extends Base1, Base2 { // error
42 >Base1 : Symbol(Base1, Decl(interfaceWithMultipleBaseTypes.ts, 0, 0))
57 interface Base1<T> {
58 >Base1 : Symbol(Base1, Decl(interfaceWithMultipleBaseTypes.ts, 26, 16))
62 >x : Symbol(Base1.x, Decl(interfaceWithMultipleBaseTypes.ts, 27, 24))
[all …]
DinterfaceWithMultipleBaseTypes.js4 interface Base1 {
16 interface Derived extends Base1, Base2 {
22 interface Derived2 extends Base1, Base2 { // error
29 interface Base1<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
DinterfaceWithMultipleBaseTypes.errors.txt4 …error TS2320: Interface 'Derived3<T>' cannot simultaneously extend types 'Base1<number>' and 'Base…
5 Named property 'x' of types 'Base1<number>' and 'Base2<number>' are not identical.
6 …pes.ts(54,15): error TS2430: Interface 'Derived4<T>' incorrectly extends interface 'Base1<number>'.
12 …aseTypes.ts(60,15): error TS2430: Interface 'Derived5<T>' incorrectly extends interface 'Base1<T>'.
23 interface Base1 {
35 interface Derived extends Base1, Base2 {
41 interface Derived2 extends Base1, Base2 { // error
52 interface Base1<T> {
64 interface Derived<T> extends Base1<string>, Base2<number> {
70 interface Derived2<T, U> extends Base1<T>, Base2<U> {
[all …]
DinterfaceWithMultipleBaseTypes.types4 interface Base1 {
22 interface Derived extends Base1, Base2 {
32 interface Derived2 extends Base1, Base2 { // error
43 interface Base1<T> {
61 interface Derived<T> extends Base1<string>, Base2<number> {
71 interface Derived2<T, U> extends Base1<T>, Base2<U> {
81 interface Derived3<T> extends Base1<number>, Base2<number> { } // error
83 interface Derived4<T> extends Base1<number>, Base2<number> { // error
93 interface Derived5<T> extends Base1<T>, Base2<T> { // error
Dsuper1.js3 class Base1 { class
9 class Sub1 extends Base1 {
86 var Base1 = /** @class */ (function () {
87 function Base1() { class in Base1
89 Base1.prototype.foo = function () {
92 return Base1;
103 }(Base1));
DthisTypeInFunctions.js142 class Base1 { class
145 explicit(this: Base1): number { return this.x; }
146 static explicitStatic(this: typeof Base1): number { return this.y; }
149 class Derived1 extends Base1 {
155 explicit(this: Base1): number { return this.x; }
160 let b1 = new Base1();
338 var Base1 = /** @class */ (function () {
339 function Base1() { class in Base1
341 Base1.prototype.polymorphic = function () { return this.x; };
342 Base1.prototype.explicit = function () { return this.x; };
[all …]
Dsuper1.symbols3 class Base1 {
4 >Base1 : Symbol(Base1, Decl(super1.ts, 0, 0))
7 >foo : Symbol(Base1.foo, Decl(super1.ts, 1, 13))
13 class Sub1 extends Base1 {
15 >Base1 : Symbol(Base1, Decl(super1.ts, 0, 0))
Dsuper1.types3 class Base1 {
4 >Base1 : Base1
14 class Sub1 extends Base1 {
16 >Base1 : Base1
DthisTypeInFunctionsNegative.types562 class Base1 {
563 >Base1 : Base1
575 explicit(this: Base1): number { return this.x; }
576 >explicit : (this: Base1) => number
577 >this : Base1
579 >this : Base1
582 static explicitStatic(this: typeof Base1): number { return this.x; }
583 >explicitStatic : (this: typeof Base1) => number
584 >this : typeof Base1
585 >Base1 : typeof Base1
[all …]
DthisTypeInFunctions.symbols602 class Base1 {
603 >Base1 : Symbol(Base1, Decl(thisTypeInFunctions.ts, 137, 24))
606 >x : Symbol(Base1.x, Decl(thisTypeInFunctions.ts, 140, 13))
609 >polymorphic : Symbol(Base1.polymorphic, Decl(thisTypeInFunctions.ts, 141, 14))
611 >this.x : Symbol(Base1.x, Decl(thisTypeInFunctions.ts, 140, 13))
613 >x : Symbol(Base1.x, Decl(thisTypeInFunctions.ts, 140, 13))
615 explicit(this: Base1): number { return this.x; }
616 >explicit : Symbol(Base1.explicit, Decl(thisTypeInFunctions.ts, 142, 61))
618 >Base1 : Symbol(Base1, Decl(thisTypeInFunctions.ts, 137, 24))
619 >this.x : Symbol(Base1.x, Decl(thisTypeInFunctions.ts, 140, 13))
[all …]
DthisTypeInFunctionsNegative.symbols485 class Base1 {
486 >Base1 : Symbol(Base1, Decl(thisTypeInFunctionsNegative.ts, 116, 32))
489 >x : Symbol(Base1.x, Decl(thisTypeInFunctionsNegative.ts, 120, 13))
492 >polymorphic : Symbol(Base1.polymorphic, Decl(thisTypeInFunctionsNegative.ts, 121, 13))
494 >this.x : Symbol(Base1.x, Decl(thisTypeInFunctionsNegative.ts, 120, 13))
496 >x : Symbol(Base1.x, Decl(thisTypeInFunctionsNegative.ts, 120, 13))
498 explicit(this: Base1): number { return this.x; }
499 >explicit : Symbol(Base1.explicit, Decl(thisTypeInFunctionsNegative.ts, 122, 61))
501 >Base1 : Symbol(Base1, Decl(thisTypeInFunctionsNegative.ts, 116, 32))
502 >this.x : Symbol(Base1.x, Decl(thisTypeInFunctionsNegative.ts, 120, 13))
[all …]
DthisTypeInFunctions.types724 class Base1 {
725 >Base1 : Base1
737 explicit(this: Base1): number { return this.x; }
738 >explicit : (this: Base1) => number
739 >this : Base1
741 >this : Base1
744 static explicitStatic(this: typeof Base1): number { return this.y; }
745 >explicitStatic : (this: typeof Base1) => number
746 >this : typeof Base1
747 >Base1 : typeof Base1
[all …]
DthisTypeInFunctionsNegative.js122 class Base1 { class
125 explicit(this: Base1): number { return this.x; }
126 static explicitStatic(this: typeof Base1): number { return this.x; }
128 class Derived1 extends Base1 {
134 explicit(this: Base1): number { return this.x; }
141 let b1 = new Base1();
288 class Base1 {
293 class Derived1 extends Base1 {
301 let b1 = new Base1();
DthisTypeInFunctions.errors.txt153 class Base1 {
156 explicit(this: Base1): number { return this.x; }
157 static explicitStatic(this: typeof Base1): number { return this.y; }
160 class Derived1 extends Base1 {
166 explicit(this: Base1): number { return this.x; }
171 let b1 = new Base1();
181 b1.polymorphic = d2.polymorphic // ok, 'x' and 'y' not in Base1: { x }
182 b1.explicit = d2.polymorphic // ok, 'x' and 'y' not in Base1: { x }
/third_party/typescript/tests/cases/conformance/interfaces/interfaceDeclarations/
DinterfaceWithMultipleBaseTypes.ts3 interface Base1 { interface
15 interface Derived extends Base1, Base2 {
21 interface Derived2 extends Base1, Base2 { // error
28 interface Base1<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
/third_party/boost/libs/serialization/test/
Dtest_void_cast.cpp16 class Base1 class
26 class Derived : public Base1, public Base2
51 Base1* pb1 = static_cast<Base1*>(pd); in test_main()
61 eti<Base1>(), in test_main()
66 eti<Base1>(), in test_main()
92 eti<Base1>(), in test_main()
97 eti<Base1>(), in test_main()
119 eti<Base1>(), in test_main()
124 eti<Base1>(), in test_main()
141 eti<Base1>(), in test_main()
[all …]
Dtest_multiple_inheritance.cpp29 struct Base1 { struct
31 Base1(){} in Base1() argument
32 Base1(int x) : m_x(1 + x) {} in Base1() argument
33 virtual ~Base1() {} in ~Base1() argument
34 bool operator==(Base1 & rhs) const { in operator ==() argument
66 public Base1,
72 Base1(x), in Sub()
79 if(! Base1::operator==(rhs)) in operator ==()
90 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base1); in serialize()
Dtest_smart_cast.cpp18 class Base1 : public boost::noncopyable class
33 class Derived : public Base1, public Base2
48 Base1 & b1 = static_cast<Base1 &>(d); in test_static_reference_cast_2()
51 Base1 & scb1 = smart_cast<Base1 &, Derived &>(d); in test_static_reference_cast_2()
65 smart_cast<Derived &, Base1 &>(b1) in test_static_reference_cast_2()
72 Base1 & b1 = static_cast<Base1 &>(d); in test_static_reference_cast_1()
75 Base1 & scb1 = smart_cast_reference<Base1 &>(d); in test_static_reference_cast_1()
98 Base1 *pB1 = pD; in test_static_pointer_cast()
102 BOOST_CHECK_EQUAL(pB1, smart_cast<Base1 *>(pD)); in test_static_pointer_cast()
Dtest_shared_ptr_multi_base.cpp30 struct Base1 { struct
31 Base1() {} in Base1() argument
32 Base1(int x) : m_x(1 + x) {} in Base1() argument
33 virtual ~Base1(){ in ~Base1() argument
76 struct Sub:public Base1, public Base2, public Base3 {
82 Base1(x), in Sub()
103 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base1); in serialize()
238 WPT<Base1> tc2_wp(tc2_sp); in test()
262 SPT<Base1> tc5_sp(tc5_sp_tmp); in test()
283 WPT<Base1> tc7_wp(tc7_sp_tmp); in test()
/third_party/boost/libs/type_traits/test/
Dhas_prefix_operators.hpp65 class Base1 { }; class
66 class Derived1 : public Base1 { };
68 inline bool operator BOOST_TT_TRAIT_OP (const Base1&) { return true; } in operator BOOST_TT_TRAIT_OP() argument
99 TEST_T(Base1, true); in common()
127 TEST_TR(Base1, bool, true); in common()
Dhas_postfix_operators.hpp60 class Base1 { }; class
61 class Derived1 : public Base1 { };
63 inline bool operator BOOST_TT_TRAIT_OP (const Base1&, int) { return true; } in operator BOOST_TT_TRAIT_OP() argument
94 TEST_T(Base1, true); in common()
125 TEST_TR(Base1, bool, true); in common()
Dhas_binary_operators.hpp70 class Base1 { }; class
71 class Derived1 : public Base1 { };
73 bool operator BOOST_TT_TRAIT_OP (const Base1&, const Base1&) { return true; } in operator BOOST_TT_TRAIT_OP() argument
122 TEST_T(Base1, true); in common()
153 TEST_TR(Base1, bool, true); in common()
/third_party/typescript/tests/cases/conformance/types/thisType/
DthisTypeInFunctionsNegative.ts123 class Base1 { class
126 explicit(this: Base1): number { return this.x; }
127 static explicitStatic(this: typeof Base1): number { return this.x; }
129 class Derived1 extends Base1 {
135 explicit(this: Base1): number { return this.x; }
142 let b1 = new Base1();
DthisTypeInFunctions.ts141 class Base1 { class
144 explicit(this: Base1): number { return this.x; }
145 static explicitStatic(this: typeof Base1): number { return this.y; }
148 class Derived1 extends Base1 {
154 explicit(this: Base1): number { return this.x; }
159 let b1 = new Base1();
/third_party/typescript/tests/cases/compiler/
Dsuper1.ts2 class Base1 { class
8 class Sub1 extends Base1 {

12