-
-
Notifications
You must be signed in to change notification settings - Fork 673
Closed
Description
The typing for String.fromCharCodes()
says:
assemblyscript/std/assembly/index.d.ts
Line 1623 in caa5801
static fromCharCodes(arr: u16[]): string; |
and
assemblyscript/std/assembly/string.ts
Line 22 in caa5801
static fromCharCodes(units: Array<i32>): String { |
In VSCode the tooltip shows u16[]
, which is the one I would expect since strings are UTF-16.
But when trying to compile, it fails:
ERROR TS2322: Type '~lib/array/Array<u16>' is not assignable to type '~lib/array/Array<i32>'.
return String.fromCharCodes(arr);
~~~
AfflatusX
Metadata
Metadata
Assignees
Labels
No labels