2018-07-23 23:36:39 +00:00
|
|
|
contract C {
|
|
|
|
function f() public {
|
|
|
|
assembly {
|
|
|
|
super := 1
|
2019-10-25 02:14:00 +00:00
|
|
|
this := 1
|
|
|
|
msg := 1
|
|
|
|
block := 1
|
2018-07-23 23:36:39 +00:00
|
|
|
f := 1
|
|
|
|
C := 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// DeclarationError 4634: (58-63): Variable not found or variable not lvalue.
|
|
|
|
// DeclarationError 4634: (75-79): Variable not found or variable not lvalue.
|
|
|
|
// DeclarationError 4634: (91-94): Variable not found or variable not lvalue.
|
|
|
|
// DeclarationError 4634: (106-111): Variable not found or variable not lvalue.
|
|
|
|
// TypeError 1990: (123-124): Only local variables can be assigned to in inline assembly.
|
|
|
|
// TypeError 1990: (136-137): Only local variables can be assigned to in inline assembly.
|