/third_party/typescript/tests/baselines/reference/ |
D | genericCloneReturnTypes2.types | 2 class MyList<T> { 3 >MyList : MyList<T> 33 >clone : () => MyList<T> 35 return new MyList<T>(this.size); 36 >new MyList<T>(this.size) : MyList<T> 37 >MyList : typeof MyList 43 var a: MyList<string>; 44 >a : MyList<string> 46 var b: MyList<any> = a.clone(); // ok 47 >b : MyList<any> [all …]
|
D | genericCloneReturnTypes2.symbols | 2 class MyList<T> { 3 >MyList : Symbol(MyList, Decl(genericCloneReturnTypes2.ts, 0, 0)) 7 >size : Symbol(MyList.size, Decl(genericCloneReturnTypes2.ts, 0, 17)) 10 >data : Symbol(MyList.data, Decl(genericCloneReturnTypes2.ts, 1, 24)) 17 >this.size : Symbol(MyList.size, Decl(genericCloneReturnTypes2.ts, 0, 17)) 18 >this : Symbol(MyList, Decl(genericCloneReturnTypes2.ts, 0, 0)) 19 >size : Symbol(MyList.size, Decl(genericCloneReturnTypes2.ts, 0, 17)) 23 >this.data : Symbol(MyList.data, Decl(genericCloneReturnTypes2.ts, 1, 24)) 24 >this : Symbol(MyList, Decl(genericCloneReturnTypes2.ts, 0, 0)) 25 >data : Symbol(MyList.data, Decl(genericCloneReturnTypes2.ts, 1, 24)) [all …]
|
D | objectTypeWithRecursiveWrappedPropertyCheckedNominally.types | 14 class MyList<T> { 15 >MyList : MyList<T> 20 next: MyList<MyList<T>>; 21 >next : MyList<MyList<T>> 34 var myList1 = new MyList<number>(); 35 >myList1 : MyList<number> 36 >new MyList<number>() : MyList<number> 37 >MyList : typeof MyList 39 var myList2 = new MyList<string>(); 40 >myList2 : MyList<string> [all …]
|
D | recursiveTypesUsedAsFunctionParameters.types | 12 class MyList<T> { 13 >MyList : MyList<T> 18 next: MyList<MyList<T>>; 19 >next : MyList<MyList<T>> 36 >foo2 : { <T>(x: List<T>): any; <U>(x: MyList<U>): any; } 39 function foo2<U>(x: MyList<U>); // ok, nominally compared with first overload 40 >foo2 : { <T>(x: List<T>): any; <U>(x: MyList<U>): any; } 41 >x : MyList<U> 44 >foo2 : { <T>(x: List<T>): any; <U>(x: MyList<U>): any; } 57 function foo3<V>(x: MyList<V>) { } [all …]
|
D | objectTypeWithRecursiveWrappedPropertyCheckedNominally.js | 9 class MyList<T> { class 11 next: MyList<MyList<T>>; field in MyList 17 var myList1 = new MyList<number>(); 18 var myList2 = new MyList<string>(); 27 var rMyList1 = new List<MyList<number>>(); 30 function foo<T extends List<number>, U extends MyList<number>>(t: T, u: U) { 35 var b: MyList<number>; 42 function foo2<T extends U, U extends MyList<number>>(t: T, u: U) { 47 var b: MyList<number>; 62 var MyList = /** @class */ (function () { [all …]
|
D | genericCloneReturnTypes2.js | 2 class MyList<T> { class 10 return new MyList<T>(this.size); 13 var a: MyList<string>; 14 var b: MyList<any> = a.clone(); // ok 15 var c: MyList<string> = a.clone(); // bug was there was an error on this line 16 var d: MyList<number> = a.clone(); // error 19 var MyList = /** @class */ (function () { 20 function MyList(n) { 24 MyList.prototype.clone = function () { 25 return new MyList(this.size); [all …]
|
D | infinitelyExpandingTypes1.symbols | 23 interface MyList<T> { 24 >MyList : Symbol(MyList, Decl(infinitelyExpandingTypes1.ts, 4, 1)) 28 >data : Symbol(MyList.data, Decl(infinitelyExpandingTypes1.ts, 7, 21)) 31 next: MyList<T>; 32 >next : Symbol(MyList.next, Decl(infinitelyExpandingTypes1.ts, 8, 12)) 33 >MyList : Symbol(MyList, Decl(infinitelyExpandingTypes1.ts, 4, 1)) 36 owner: MyList<MyList<T>>; 37 >owner : Symbol(MyList.owner, Decl(infinitelyExpandingTypes1.ts, 9, 20)) 38 >MyList : Symbol(MyList, Decl(infinitelyExpandingTypes1.ts, 4, 1)) 39 >MyList : Symbol(MyList, Decl(infinitelyExpandingTypes1.ts, 4, 1)) [all …]
|
D | objectTypeWithRecursiveWrappedPropertyCheckedNominally.symbols | 19 class MyList<T> { 20 >MyList : Symbol(MyList, Decl(objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts, 5, 1)) 24 >data : Symbol(MyList.data, Decl(objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts, 7, 17)) 27 next: MyList<MyList<T>>; 28 >next : Symbol(MyList.next, Decl(objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts, 8, 12)) 29 >MyList : Symbol(MyList, Decl(objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts, 5, 1)) 30 >MyList : Symbol(MyList, Decl(objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts, 5, 1)) 42 var myList1 = new MyList<number>(); 44 >MyList : Symbol(MyList, Decl(objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts, 5, 1)) 46 var myList2 = new MyList<string>(); [all …]
|
D | objectTypeWithRecursiveWrappedPropertyCheckedNominally.errors.txt | 1 …thRecursiveWrappedPropertyCheckedNominally.ts(20,1): error TS2322: Type 'MyList<string>' is not as… 4 …thRecursiveWrappedPropertyCheckedNominally.ts(22,1): error TS2322: Type 'MyList<number>' is not as… 9 Type 'MyList<number>' is not assignable to type 'T'. 10 …'MyList<number>' is assignable to the constraint of type 'T', but 'T' could be instantiated with a… 12 …of type 'U', but 'U' could be instantiated with a different subtype of constraint 'MyList<number>'. 14 …of type 'U', but 'U' could be instantiated with a different subtype of constraint 'MyList<number>'. 16 …of type 'T', but 'T' could be instantiated with a different subtype of constraint 'MyList<number>'. 17 Type 'MyList<number>' is not assignable to type 'T'. 18 'T' could be instantiated with an arbitrary type which could be unrelated to 'MyList<number>'. 29 class MyList<T> { [all …]
|
D | arrayLiteralsWithRecursiveGenerics.types | 22 class MyList<T> { 23 >MyList : MyList<T> 28 next: MyList<MyList<T>>; 29 >next : MyList<MyList<T>> 38 var myList: MyList<number>; 39 >myList : MyList<number> 42 >xs : (List<number> | MyList<number>)[] 43 >[list, myList] : (List<number> | MyList<number>)[] 45 >myList : MyList<number>
|
D | infinitelyExpandingTypes1.types | 14 interface MyList<T> { 18 next: MyList<T>; 19 >next : MyList<T> 21 owner: MyList<MyList<T>>; 22 >owner : MyList<MyList<T>> 28 var m: MyList<number>; 29 >m : MyList<number> 34 >m : MyList<number>
|
D | genericCloneReturnTypes2.errors.txt | 1 …ericCloneReturnTypes2.ts(15,5): error TS2322: Type 'MyList<string>' is not assignable to type 'MyL… 6 class MyList<T> { 14 return new MyList<T>(this.size); 17 var a: MyList<string>; 18 var b: MyList<any> = a.clone(); // ok 19 var c: MyList<string> = a.clone(); // bug was there was an error on this line 20 var d: MyList<number> = a.clone(); // error 22 !!! error TS2322: Type 'MyList<string>' is not assignable to type 'MyList<number>'.
|
D | recursiveTypesUsedAsFunctionParameters.js | 7 class MyList<T> { class 9 next: MyList<MyList<T>>; field in MyList 18 function foo2<U>(x: MyList<U>); // ok, nominally compared with first overload 26 function foo3<V>(x: MyList<V>) { } 36 function foo5<V>(x: MyList<V>): boolean; 40 var myList: MyList<string>; 52 var MyList = /** @class */ (function () { 53 function MyList() { class in MyList 55 return MyList;
|
D | arrayLiteralsWithRecursiveGenerics.symbols | 30 class MyList<T> { 31 >MyList : Symbol(MyList, Decl(arrayLiteralsWithRecursiveGenerics.ts, 8, 1)) 35 >data : Symbol(MyList.data, Decl(arrayLiteralsWithRecursiveGenerics.ts, 10, 17)) 38 next: MyList<MyList<T>>; 39 >next : Symbol(MyList.next, Decl(arrayLiteralsWithRecursiveGenerics.ts, 11, 12)) 40 >MyList : Symbol(MyList, Decl(arrayLiteralsWithRecursiveGenerics.ts, 8, 1)) 41 >MyList : Symbol(MyList, Decl(arrayLiteralsWithRecursiveGenerics.ts, 8, 1)) 53 var myList: MyList<number>; 55 >MyList : Symbol(MyList, Decl(arrayLiteralsWithRecursiveGenerics.ts, 8, 1))
|
D | recursiveTypesUsedAsFunctionParameters.symbols | 17 class MyList<T> { 18 >MyList : Symbol(MyList, Decl(recursiveTypesUsedAsFunctionParameters.ts, 3, 1)) 22 >data : Symbol(MyList.data, Decl(recursiveTypesUsedAsFunctionParameters.ts, 5, 17)) 25 next: MyList<MyList<T>>; 26 >next : Symbol(MyList.next, Decl(recursiveTypesUsedAsFunctionParameters.ts, 6, 12)) 27 >MyList : Symbol(MyList, Decl(recursiveTypesUsedAsFunctionParameters.ts, 3, 1)) 28 >MyList : Symbol(MyList, Decl(recursiveTypesUsedAsFunctionParameters.ts, 3, 1)) 61 function foo2<U>(x: MyList<U>); // ok, nominally compared with first overload 65 >MyList : Symbol(MyList, Decl(recursiveTypesUsedAsFunctionParameters.ts, 3, 1)) 89 function foo3<V>(x: MyList<V>) { } [all …]
|
D | arrayLiteralsWithRecursiveGenerics.js | 12 class MyList<T> { class 14 next: MyList<MyList<T>>; field in MyList 19 var myList: MyList<number>; 56 var MyList = /** @class */ (function () { 57 function MyList() { class in MyList 59 return MyList;
|
D | infinitelyExpandingTypes1.js | 9 interface MyList<T> { 11 next: MyList<T>; 12 owner: MyList<MyList<T>>; 16 var m: MyList<number>;
|
D | infinitelyExpandingTypes1.errors.txt | 12 interface MyList<T> { 14 next: MyList<T>; 15 owner: MyList<MyList<T>>; 19 var m: MyList<number>;
|
/third_party/typescript/tests/cases/conformance/types/typeRelationships/recursiveTypes/ |
D | objectTypeWithRecursiveWrappedPropertyCheckedNominally.ts | 8 class MyList<T> { class 10 next: MyList<MyList<T>>; 16 var myList1 = new MyList<number>(); 17 var myList2 = new MyList<string>(); 26 var rMyList1 = new List<MyList<number>>(); 29 function foo<T extends List<number>, U extends MyList<number>>(t: T, u: U) { 34 var b: MyList<number>; 41 function foo2<T extends U, U extends MyList<number>>(t: T, u: U) { 46 var b: MyList<number>;
|
D | recursiveTypesUsedAsFunctionParameters.ts | 6 class MyList<T> { class 8 next: MyList<MyList<T>>; 17 function foo2<U>(x: MyList<U>); // ok, nominally compared with first overload 25 function foo3<V>(x: MyList<V>) { } 35 function foo5<V>(x: MyList<V>): boolean; 39 var myList: MyList<string>;
|
D | arrayLiteralsWithRecursiveGenerics.ts | 11 class MyList<T> { class 13 next: MyList<MyList<T>>; 18 var myList: MyList<number>;
|
/third_party/typescript/tests/cases/compiler/ |
D | genericCloneReturnTypes2.ts | 1 class MyList<T> { class 9 return new MyList<T>(this.size); 12 var a: MyList<string>; 13 var b: MyList<any> = a.clone(); // ok 14 var c: MyList<string> = a.clone(); // bug was there was an error on this line 15 var d: MyList<number> = a.clone(); // error
|
D | infinitelyExpandingTypes1.ts | 8 interface MyList<T> { interface 10 next: MyList<T>; 11 owner: MyList<MyList<T>>; 15 var m: MyList<number>;
|
/third_party/boost/libs/interprocess/example/ |
D | doc_managed_mapped_file.cpp | 27 MyList; typedef 48 MyList::size_type old_size = 0; in main() 52 MyList *mylist = mfile_memory.construct<MyList>("MyList") in main() 80 MyList *mylist = static_cast<MyList *> in main() 94 MyList::size_type new_size = mylist->size(); in main()
|
D | doc_managed_heap_memory.cpp | 20 MyList; typedef 27 MyList * mylist = heap_memory.construct<MyList>("MyList") in main() 43 MyList::size_type old_size = mylist->size(); in main() 54 mylist = static_cast<MyList *> in main() 68 MyList::size_type new_size = mylist->size(); in main()
|