as-bignum icon indicating copy to clipboard operation
as-bignum copied to clipboard

u128 declaration

Open bowenwang1996 opened this issue 5 years ago • 1 comments

It would be nice if it is possible to do

u128Val: u128 = 1;

but currently this causes the following error

ERROR AS200: Conversion from type 'i32' to 'bignum/integer/u128/u128' requires an explicit cast.

bowenwang1996 avatar Jun 19 '19 21:06 bowenwang1996

Currently custom type casting not possible in AssemblyScript unfortunately. But you could open issue in AS repo and request such feature)

MaxGraey avatar Jun 19 '19 22:06 MaxGraey