ton-blockchain / intellij-ton

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

Tact: incorrect syntax erorr at empty messages/structs. #191

Open imartemy1524 opened 1 month ago

imartemy1524 commented 1 month ago

When one tries to create struct/message without passing fields - plugin doesn't recognize it.

Code example

message(0x123) Test{
    //empty body
}

fun createTest(): Test{
    //Syntax error here
    return Test{};
}

Error messages

Unresolved reference: `Test`
<statement> expected, got ';'

image

System information

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