tact-docs icon indicating copy to clipboard operation
tact-docs copied to clipboard

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

Open jubnzv opened this issue 4 months ago • 0 comments

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;

jubnzv avatar Oct 05 '24 01:10 jubnzv