tact-docs
tact-docs copied to clipboard
book/maps has incorrect map type
https://github.com/tact-lang/tact-docs/blob/d6ec58ee3180b50f2f89293019e3c7985d6603da/pages/book/maps.mdx?plain=1#L83
Invalid types provided. Map is <Int, Int>, but type String? was provided to variable. Moreover, the page does not mention String is a valid map value type.
Also, in on the same page:
arr: map<Int, Int>; // "array" of String values as a map
@anton-trunov hey, you have just edited my description and added Moreover, the page does not mention String is a valid map value type.. Seem like tact does not support String as map type yet. Or i am mistaken?
@a-bahdanau Right, String is not supported, although the typechecker does not always report it: https://github.com/tact-lang/tact/issues/701