2018-09-06 16:59:50 +00:00
|
|
|
contract C {
|
|
|
|
address view m_a;
|
|
|
|
address pure m_b;
|
|
|
|
address view[] m_c;
|
|
|
|
mapping(uint => address view) m_d;
|
|
|
|
function f() public pure {
|
|
|
|
address view a;
|
|
|
|
address pure b;
|
|
|
|
a; b;
|
|
|
|
}
|
|
|
|
function g(address view) public pure {}
|
|
|
|
function h(address pure) public pure {}
|
|
|
|
function i() public pure returns (address view) {}
|
|
|
|
function j() public pure returns (address pure) {}
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// TypeError 2311: (14-26): Address types can only be payable or non-payable.
|
|
|
|
// TypeError 2311: (33-45): Address types can only be payable or non-payable.
|
|
|
|
// TypeError 2311: (52-64): Address types can only be payable or non-payable.
|
|
|
|
// TypeError 2311: (89-101): Address types can only be payable or non-payable.
|
|
|
|
// TypeError 2311: (138-150): Address types can only be payable or non-payable.
|
|
|
|
// TypeError 2311: (156-168): Address types can only be payable or non-payable.
|
|
|
|
// TypeError 2311: (195-207): Address types can only be payable or non-payable.
|
|
|
|
// TypeError 2311: (236-248): Address types can only be payable or non-payable.
|
|
|
|
// TypeError 2311: (300-312): Address types can only be payable or non-payable.
|
|
|
|
// TypeError 2311: (352-364): Address types can only be payable or non-payable.
|