solidity/test/libsolidity/syntaxTests/iceRegressionTests/recursive_struct_memory.sol

15 lines
542 B
Solidity
Raw Normal View History

contract Test {
struct RecursiveStruct {
address payable d ;
mapping ( uint => address payable ) c ;
mapping ( uint => address payable [ ] ) d ;
}
function func ( ) private pure {
RecursiveStruct [ 1 ] memory val ;
val ;
}
}
// ----
// DeclarationError 2333: (157-198): Identifier already declared.
2020-06-07 16:00:52 +00:00
// TypeError 4061: (268-300): Type struct Test.RecursiveStruct[1] is only valid in storage because it contains a (nested) mapping.