Closed
Description
The typing for String.fromCharCodes()
says:
assemblyscript/std/assembly/index.d.ts
Line 1623 in caa5801
and
assemblyscript/std/assembly/string.ts
Line 22 in caa5801
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);
~~~
Metadata
Metadata
Assignees
Labels
No labels