aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/types/bytes_to_contract.sol
blob: 820dbf9bd986227cf21f3afabce90a8f89c83149 (plain) (blame)
1
2
3
4
5
6
7
contract C {
        function f() public pure {
                C(bytes20(uint160(0x1234)));
        }
}
// ----
// TypeError: (64-91): Explicit type conversion not allowed from "bytes20" to "contract C".