solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/invalidArgs/creating_struct_members_skipped.sol
2020-07-20 17:22:04 +02:00

10 lines
221 B
Solidity

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