solidity/test/libsolidity/syntaxTests/functionCalls/invalid_expressions_with_calloptions3.sol
2020-01-23 21:20:01 +01:00

11 lines
369 B
Solidity

contract D {}
contract C {
function foo(int a) external {
this.foo{slt:5, value:3, salt: 8};
}
}
// ----
// TypeError: (64-97): Unknown call option "slt". Valid options are "salt", "value" and "gas".
// TypeError: (64-97): Cannot set option "value" on a non-payable function type.
// TypeError: (64-97): Function call option "salt" can only be used with "new".