Skip to content

Modifier arguments should allow ExpressionStatements #27

@raineorshine

Description

@raineorshine

This fails to parse:

pragma solidity ^0.4.4;

contract A {
    function yes() public constant returns(bool) {
        return true;
    }
}

contract MyContract {
  A a;
  modifier only(bool b) { _; }
  function foo() only(a.yes()) {
  }
}

If a.yes() is replaced with true it parses fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions