Closed
Description
Hi,
with the current assemblyscript version 0.20.6 I get an IntelliSense Error in VSCode, when I have the following code:
const myNum: i32 = 2;
const s = myNum.toString(2);
The toString(2)
function is not recognized. Error shown:
Expected 0 arguments, but got 1
Currently the toString() function of my code above points towards the interface in the file assemblyscript/std/assembly/index.d.ts, which has no parameter for toString():
interface Function {
......
/** Returns a string representation of this function. */
toString(): string;
}
But I can successfully compile the code with toString(2)
. Any ideas what causes this problem, or how to fix it?
Metadata
Metadata
Assignees
Labels
No labels