mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
279 B
Solidity
11 lines
279 B
Solidity
|
contract C {
|
||
|
struct S { uint a; uint b; }
|
||
|
|
||
|
function f() public {
|
||
|
var s = S({a: 1});
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (81-86): Use of the "var" keyword is deprecated.
|
||
|
// TypeError: (89-98): Wrong argument count for struct constructor: 1 arguments given but expected 2.
|