solidity/test/libsolidity/syntaxTests/constructor/constructor_mapping_memory.sol
2020-07-07 12:16:18 +02:00

7 lines
398 B
Solidity

contract A {
constructor(mapping(uint => uint) memory a) {}
}
// ----
// TypeError 4103: (29-59): Types containing (nested) mappings can only be parameters or return variables of internal or library functions. You can make the contract abstract to avoid this problem.
// TypeError 4061: (29-59): Type mapping(uint256 => uint256) is only valid in storage because it contains a (nested) mapping.