mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
694 B
Solidity
20 lines
694 B
Solidity
contract C {
|
|
function f() public {
|
|
assembly {
|
|
super := 1
|
|
this := 1
|
|
msg := 1
|
|
block := 1
|
|
f := 1
|
|
C := 1
|
|
}
|
|
}
|
|
}
|
|
// ----
|
|
// DeclarationError 4634: (58-63='super'): Variable not found or variable not lvalue.
|
|
// DeclarationError 4634: (75-79='this'): Variable not found or variable not lvalue.
|
|
// DeclarationError 4634: (91-94='msg'): Variable not found or variable not lvalue.
|
|
// DeclarationError 4634: (106-111='block'): Variable not found or variable not lvalue.
|
|
// TypeError 1990: (123-124='f'): Only local variables can be assigned to in inline assembly.
|
|
// TypeError 1990: (136-137='C'): Only local variables can be assigned to in inline assembly.
|