File: valueOfTypedArray.types

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (92 lines) | stat: -rw-r--r-- 3,465 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
=== tests/cases/compiler/valueOfTypedArray.ts ===
// All declarations should pass, as valueOf has been specialized for all TypedArrays
const typedArray0: Int8Array = (new Int8Array()).valueOf();
>typedArray0 : Int8Array
>(new Int8Array()).valueOf() : Int8Array
>(new Int8Array()).valueOf : () => Int8Array
>(new Int8Array()) : Int8Array
>new Int8Array() : Int8Array
>Int8Array : Int8ArrayConstructor
>valueOf : () => Int8Array

const typedArray1: Uint8Array = (new Uint8Array()).valueOf();
>typedArray1 : Uint8Array
>(new Uint8Array()).valueOf() : Uint8Array
>(new Uint8Array()).valueOf : () => Uint8Array
>(new Uint8Array()) : Uint8Array
>new Uint8Array() : Uint8Array
>Uint8Array : Uint8ArrayConstructor
>valueOf : () => Uint8Array

const typedArray2: Int16Array = (new Int16Array()).valueOf();
>typedArray2 : Int16Array
>(new Int16Array()).valueOf() : Int16Array
>(new Int16Array()).valueOf : () => Int16Array
>(new Int16Array()) : Int16Array
>new Int16Array() : Int16Array
>Int16Array : Int16ArrayConstructor
>valueOf : () => Int16Array

const typedArray3: Uint16Array = (new Uint16Array()).valueOf();
>typedArray3 : Uint16Array
>(new Uint16Array()).valueOf() : Uint16Array
>(new Uint16Array()).valueOf : () => Uint16Array
>(new Uint16Array()) : Uint16Array
>new Uint16Array() : Uint16Array
>Uint16Array : Uint16ArrayConstructor
>valueOf : () => Uint16Array

const typedArray4: Int32Array = (new Int32Array()).valueOf();
>typedArray4 : Int32Array
>(new Int32Array()).valueOf() : Int32Array
>(new Int32Array()).valueOf : () => Int32Array
>(new Int32Array()) : Int32Array
>new Int32Array() : Int32Array
>Int32Array : Int32ArrayConstructor
>valueOf : () => Int32Array

const typedArray5: Uint32Array = (new Uint32Array()).valueOf();
>typedArray5 : Uint32Array
>(new Uint32Array()).valueOf() : Uint32Array
>(new Uint32Array()).valueOf : () => Uint32Array
>(new Uint32Array()) : Uint32Array
>new Uint32Array() : Uint32Array
>Uint32Array : Uint32ArrayConstructor
>valueOf : () => Uint32Array

const typedArray6: Float32Array = (new Float32Array()).valueOf();
>typedArray6 : Float32Array
>(new Float32Array()).valueOf() : Float32Array
>(new Float32Array()).valueOf : () => Float32Array
>(new Float32Array()) : Float32Array
>new Float32Array() : Float32Array
>Float32Array : Float32ArrayConstructor
>valueOf : () => Float32Array

const typedArray7: Float64Array = (new Float64Array()).valueOf();
>typedArray7 : Float64Array
>(new Float64Array()).valueOf() : Float64Array
>(new Float64Array()).valueOf : () => Float64Array
>(new Float64Array()) : Float64Array
>new Float64Array() : Float64Array
>Float64Array : Float64ArrayConstructor
>valueOf : () => Float64Array

const typedArray8: BigInt64Array = (new BigInt64Array()).valueOf();
>typedArray8 : BigInt64Array
>(new BigInt64Array()).valueOf() : BigInt64Array
>(new BigInt64Array()).valueOf : () => BigInt64Array
>(new BigInt64Array()) : BigInt64Array
>new BigInt64Array() : BigInt64Array
>BigInt64Array : BigInt64ArrayConstructor
>valueOf : () => BigInt64Array

const typedArray9: BigUint64Array = (new BigUint64Array()).valueOf();
>typedArray9 : BigUint64Array
>(new BigUint64Array()).valueOf() : BigUint64Array
>(new BigUint64Array()).valueOf : () => BigUint64Array
>(new BigUint64Array()) : BigUint64Array
>new BigUint64Array() : BigUint64Array
>BigUint64Array : BigUint64ArrayConstructor
>valueOf : () => BigUint64Array