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

10 lines
234 B
Solidity
Raw Normal View History

contract C {
struct S { uint a; uint b; mapping(uint=>uint) c; }
function f() public {
S memory s = S({a: 1});
}
}
// ----
2020-06-07 16:00:52 +00:00
// TypeError 9515: (117-126): Struct containing a (nested) mapping cannot be constructed.