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

Linter complain on try/catch syntax #293

Open
mfornet opened this issue Jun 8, 2021 · 0 comments
Open

Linter complain on try/catch syntax #293

mfornet opened this issue Jun 8, 2021 · 0 comments
Labels

Comments

@mfornet
Copy link

mfornet commented Jun 8, 2021

Description
It should pass but complains about syntax error during linting:

contracts/test/Tester.sol
  34:13    error    Syntax error: unexpected token t

For the code:

    function tryWithdrawAndAvoidFail(bool toNear) external {
        try this.withdrawAndFail(toNear) {
            require(false);
        } catch {
        }
    }

Line 34, is the one containing the try statement

Operating System
MacOS 10.15.7

Linter version
Solium version 1.2.5

Comments
If you'd like to share any additional information that doesn't fit in above sections or suggest a solution to the maintainers.

Priority
Medium

@mfornet mfornet added the bug label Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant