tact-lang / tact-docs

Tact main documentation
https://docs.tact-lang.org
57 stars 40 forks source link

`data-structures.mdx`: Code cannot be compiled #405

Closed jubnzv closed 4 weeks ago

jubnzv commented 1 month ago

The recent version of the compiler rejects the following code:

https://github.com/tact-lang/tact-docs/blob/d285e25dc2a906cfb43e743b8f8430fd10c480de/pages/cookbook/data-structures.mdx?plain=1#L254

Syntax error: src/routes/(examples)/04-arrays/contract.tact:47:13: Parse error: expected not a reservedWord

Line 47, col 13:
  46 |
> 47 |     get fun map(): map<Int, Int> {
                   ^
  48 |         return self.arr;