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

Function type declaration are rewritten incorrectly #325

Closed
adjicf opened this issue Aug 25, 2020 · 2 comments · Fixed by #333
Closed

Function type declaration are rewritten incorrectly #325

adjicf opened this issue Aug 25, 2020 · 2 comments · Fixed by #333
Labels
bug Something isn't working

Comments

@adjicf
Copy link

adjicf commented Aug 25, 2020

The original code:

contract Broken {
    struct Something {
        // This gives an error
        function (address) external view returns (uint256) getSomething;
    }
}

The rewrite:

contract Broken {
    struct Something {
        // This gives an error
        function(address) returns (uint256) external view getSomething;
    }
}
@mattiaerre
Copy link
Member

this one seems bad; what do you think @Janther @fvictorio ?

@mattiaerre mattiaerre added the bug Something isn't working label Aug 29, 2020
@fvictorio
Copy link
Member

Definitely a bug, probably not hard to fix. Sorry, I've been chewing more than I can swallow lately, I'll see if I can put some hours here one of these days 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants