solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/invalidArgs/creating_struct_members_skipped.sol

10 lines
221 B
Solidity
Raw Normal View History

contract C {
struct S { uint a; uint b; mapping(uint=>uint) c; }
function f() public {
2020-07-15 17:50:59 +00:00
S({a: 1});
}
}
// ----
2020-07-15 17:50:59 +00:00
// TypeError 9515: (104-113): Struct containing a (nested) mapping cannot be constructed.