Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect diagnostics: Unsupported format remaining for map value #41

Closed
novusnota opened this issue Jul 25, 2024 · 1 comment
Closed

Comments

@novusnota
Copy link
Member

Tact compiler allows specifying remaining as a serialization format for map values, despite that it doesn't actually do anything and default still applies. Consider the following example:

contract Example {
    m: map<Int, Cell as remaining>; // ← compiles fine,
                                    // albeit as `dict<uint8, ^cell>`, and not
                                    // `dict<uint8, remainder<cell>>` as one might expect
}

However, tact-vscode considers it an error, showing Unsupported format remaining for map value, while the code compiles just fine under Tact v1.4.0 and newest dev versions, see: tact-lang/tact#569 (comment)

@logvik
Copy link
Member

logvik commented Jul 25, 2024

I am waiting for #36, fixes are not at marketplace yet

@logvik logvik closed this as completed Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants