Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

toString does not work with casting inline #129

Open
bowenwang1996 opened this issue May 8, 2019 · 0 comments
Open

toString does not work with casting inline #129

bowenwang1996 opened this issue May 8, 2019 · 0 comments

Comments

@bowenwang1996
Copy link
Contributor

bowenwang1996 commented May 8, 2019

near.log((2 as u32).toString()); does not work. See this fiddle https://studio.nearprotocol.com/?f=bdj9oguss.

However, if we change it to

let a: u32 = 2;
near.log(a.toString());

then it works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant