Skip to content

toString(radix?: number) not recognized by IntelliSense #2281

Closed
@realex587

Description

@realex587

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions