solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/376_inline_assembly_in_modifier.sol
2018-08-06 12:03:00 +01:00

14 lines
237 B
Solidity

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