mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
18 lines
537 B
Solidity
18 lines
537 B
Solidity
|
contract D {}
|
||
|
contract C {
|
||
|
function foo(int a) payable external {
|
||
|
this.foo{gas:2, gas: 5};
|
||
|
this.foo{value:2, value: 5};
|
||
|
this.foo{gas:2, value: 5, gas:2, value:3};
|
||
|
new D{salt:"abc", salt:"efg"}();
|
||
|
}
|
||
|
}
|
||
|
// ====
|
||
|
// EVMVersion: >=constantinople
|
||
|
// ----
|
||
|
// TypeError: (78-101): Duplicate option "gas".
|
||
|
// TypeError: (111-138): Duplicate option "value".
|
||
|
// TypeError: (148-189): Duplicate option "gas".
|
||
|
// TypeError: (148-189): Duplicate option "value".
|
||
|
// TypeError: (199-228): Duplicate option "salt".
|