aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/inlineAssembly/assignment_to_special.sol
blob: db28e5074139e76db42ed4e44bb2a59884b12e13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
contract C {
  function f() public {
    assembly {
      super := 1
      f := 1
      C := 1
    }
  }
}
// ----
// TypeError: (58-63): Only local variables can be assigned to in inline assembly.
// TypeError: (75-76): Only local variables can be assigned to in inline assembly.
// TypeError: (88-89): Only local variables can be assigned to in inline assembly.