Home
last modified time | relevance | path

Searched refs:MyList (Results 1 - 11 of 11) sorted by relevance

/third_party/typescript/tests/baselines/reference/
H A DgenericCloneReturnTypes2.js2 class MyList<T> {
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(thi
[all...]
H A DobjectTypeWithRecursiveWrappedPropertyCheckedNominally.js9 class MyList<T> {
11 next: MyList<MyList<T>>;
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<numbe
[all...]
H A DrecursiveTypesUsedAsFunctionParameters.js7 class MyList<T> {
9 next: MyList<MyList<T>>;
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() {
55 return MyList;
[all...]
H A DarrayLiteralsWithRecursiveGenerics.js12 class MyList<T> {
14 next: MyList<MyList<T>>;
19 var myList: MyList<number>;
56 var MyList = /** @class */ (function () {
57 function MyList() {
59 return MyList;
H A DinfinitelyExpandingTypes1.js9 interface MyList<T> {
11 next: MyList<T>;
12 owner: MyList<MyList<T>>;
16 var m: MyList<number>;
/third_party/python/Lib/test/
H A Dtest_genericalias.py193 class MyList(list): class
195 t = MyList[int]
196 self.assertIs(t.__origin__, MyList)
201 class MyList(list): class
212 self.assertTrue(repr(MyList[int]).endswith('.BaseTest.test_repr.<locals>.MyList[int]'))
H A Dpickletester.py1519 self._test_recursive_list(MyList, minprotocol=2)
1554 self._test_recursive_tuple_and_list(MyList, minprotocol=2)
1764 self._test_recursive_collection_and_inst(MyList)
2123 x = MyList([1, 2, 3])
2193 copyreg.add_extension(__name__, "MyList", extcode)
2194 x = MyList([1, 2, 3])
2201 self.assertIn(b"MyList", s1)
2210 self.assertNotIn(b"MyList", s2)
3372 class MyList(list): class
3387 MyTuple, MyList, MyDic
[all...]
H A Dtest_statistics.py1089 class MyList(list): class
1097 for kind in (list, tuple, iter, MyList, MyTuple, generator):
H A Dtest_typing.py5765 class MyList(typing.List[int]): class
5768 a = MyList()
5769 self.assertIsInstance(a, MyList)
5772 self.assertIsSubclass(MyList, list)
5773 self.assertNotIsSubclass(list, MyList)
/third_party/PyYAML/tests/lib/
H A Dtest_constructor.py19 NewArgs, NewArgsWithState, Reduce, ReduceWithState, Slots, MyInt, MyList, MyDict, \
204 class MyList(list): class
/third_party/python/Lib/test/test_capi/
H A Dtest_misc.py548 from _testcapi import MyList namespace
551 L = MyList((L,))
559 from _testcapi import MyList namespace
560 self.do_test_trashcan_python_class(MyList)

Completed in 25 milliseconds