aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/inlineAssembly/function_call_to_variable.sol
blob: c00718553554535ef94ffb4d2d4897deb0a7bd7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
contract C {
  function f() public pure {
    assembly {
      let x := 1

      x()
    }
  }
}
// ----
// TypeError: (81-82): Attempt to call variable instead of function.