solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/376_inline_assembly_in_modifier.sol

14 lines
237 B
Solidity
Raw Normal View History

contract test {
modifier m {
uint a = 1;
assembly {
a := 2
}
_;
}
function f() public m {
}
}
// ----
2018-08-06 10:42:39 +00:00
// Warning: (122-151): Function state mutability can be restricted to pure