ton-blockchain / intellij-ton

TON Development plugin for the IntelliJ Platform
https://plugins.jetbrains.com/plugin/23382-ton
GNU General Public License v3.0
85 stars 12 forks source link

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

Open imartemy1524 opened 3 months ago

imartemy1524 commented 3 months ago

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