aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/multiVariableDeclaration/multiVariableDeclarationThatIsExpression.sol
blob: 8ae0eaace81383da42b0077e85acd1810de129fe (plain) (blame)
1
2
3
4
5
6
7
8
9
contract C {
  struct S { function() returns (S storage)[] x; }
  S s;
  function f() internal pure returns (uint, uint, uint, S storage, uint, uint) {
    (,,,s.x[2](),,) = f();
  }
} 
// ----
// TypeError: (160-168): Expression has to be an lvalue.