aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/052_function_internal_not_allowed_conversion.sol
blob: c16d35eb3eefcb7f3b88f712008eb9fa4b8fed1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
contract C {
    uint a;
}
contract Test {
    address a;
    function g (C c) public {}
    function internalCall() public {
        g(a);
    }
}
// ----
// TypeError: (136-137): Invalid type for argument in function call. Invalid implicit conversion from address to contract C requested.