Skip to content

Modifier definitions without an underscore don't throw an error #647

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

Closed
rangelife opened this issue Jun 13, 2016 · 0 comments
Closed

Modifier definitions without an underscore don't throw an error #647

rangelife opened this issue Jun 13, 2016 · 0 comments

Comments

@rangelife
Copy link

modifier insurerOnly {
    if(msg.sender != insurer) throw;
}

Looks fair enough... But any method using this modifier will lose it body due to lack of underscore.

This should be a compile time error. Why would you ever want a modifier to wipe out the method body?

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

3 participants