Home
last modified time | relevance | path

Searched refs:MyList (Results 1 – 25 of 38) sorted by relevance

12

/third_party/typescript/tests/baselines/reference/
DgenericCloneReturnTypes2.types2 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 …]
DgenericCloneReturnTypes2.symbols2 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 …]
DobjectTypeWithRecursiveWrappedPropertyCheckedNominally.types14 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 …]
DrecursiveTypesUsedAsFunctionParameters.types12 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 …]
DobjectTypeWithRecursiveWrappedPropertyCheckedNominally.js9 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 …]
DgenericCloneReturnTypes2.js2 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 …]
DinfinitelyExpandingTypes1.symbols23 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 …]
DobjectTypeWithRecursiveWrappedPropertyCheckedNominally.symbols19 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 …]
DobjectTypeWithRecursiveWrappedPropertyCheckedNominally.errors.txt1 …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 …]
DarrayLiteralsWithRecursiveGenerics.types22 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>
DinfinitelyExpandingTypes1.types14 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>
DgenericCloneReturnTypes2.errors.txt1 …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>'.
DrecursiveTypesUsedAsFunctionParameters.js7 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;
DarrayLiteralsWithRecursiveGenerics.symbols30 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))
DrecursiveTypesUsedAsFunctionParameters.symbols17 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 …]
DarrayLiteralsWithRecursiveGenerics.js12 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;
DinfinitelyExpandingTypes1.js9 interface MyList<T> {
11 next: MyList<T>;
12 owner: MyList<MyList<T>>;
16 var m: MyList<number>;
DinfinitelyExpandingTypes1.errors.txt12 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/
DobjectTypeWithRecursiveWrappedPropertyCheckedNominally.ts8 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>;
DrecursiveTypesUsedAsFunctionParameters.ts6 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>;
DarrayLiteralsWithRecursiveGenerics.ts11 class MyList<T> { class
13 next: MyList<MyList<T>>;
18 var myList: MyList<number>;
/third_party/typescript/tests/cases/compiler/
DgenericCloneReturnTypes2.ts1 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
DinfinitelyExpandingTypes1.ts8 interface MyList<T> { interface
10 next: MyList<T>;
11 owner: MyList<MyList<T>>;
15 var m: MyList<number>;
/third_party/boost/libs/interprocess/example/
Ddoc_managed_mapped_file.cpp27 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()
Ddoc_managed_heap_memory.cpp20 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()

12