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

Tact: incorrect syntax error at Map.get function #190

Open
imartemy1524 opened this issue Aug 20, 2024 · 0 comments
Open

Tact: incorrect syntax error at Map.get function #190

imartemy1524 opened this issue Aug 20, 2024 · 0 comments

Comments

@imartemy1524
Copy link

It seems that plugin doesn't recognize tact Map.get function, and represents it as a system keyword.

Code example:

struct OK{
    v: map<Address, Bool>;
}


extends mutates fun setOk(self: OK, key: Address) {
    //syntax error here
    let c = self.v.get(key);
    require(c == null, "Already set");
    self.v.set(key, true);
}

Error messages:

IDENTIFIER expected, got 'get', <function attribute>, IDENTIFIER or fun expected, got '('

image

System information

Tact plugin version: 2.3
Webstorm version: 2024.2
Operation system: Arch Linux x86_64

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

1 participant