cast icon indicating copy to clipboard operation
cast copied to clipboard

Support `string alias type`'s `ToStringE` and `ToString` functions

Open PeterlitsZo opened this issue 2 years ago • 3 comments

Now we support:

type StrAlias string
ToString(StrAlias("bar")) // "bar"

PeterlitsZo avatar Dec 23 '23 03:12 PeterlitsZo

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Dec 23 '23 03:12 CLAassistant

Oops, I am sorry that I ask for PR in wrong space... BTW, do you want my PR? If you do, I will change it for your project or you can just close the PR directly.

PeterlitsZo avatar Dec 23 '23 04:12 PeterlitsZo

i dont think this is a good pr. same problem in all others type alias.

type uintAlias uint16
ToString(uintAlias (1)) // "1"

xiaotushaoxia avatar May 06 '24 13:05 xiaotushaoxia