solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/no_effect_statements.sol
2019-02-18 18:59:31 +01:00

17 lines
386 B
Solidity

contract test {
struct s { uint a; uint b;}
function f() pure public returns (byte) {
s;
s(1,2);
s[7];
uint;
uint[7];
}
}
// ----
// Warning: (93-94): Statement has no effect.
// Warning: (98-104): Statement has no effect.
// Warning: (108-112): Statement has no effect.
// Warning: (116-120): Statement has no effect.
// Warning: (124-131): Statement has no effect.