solidity/test/libsolidity/syntaxTests/freeFunctions/free_call_via_contract_type.sol
2020-08-18 11:46:59 +02:00

9 lines
158 B
Solidity

contract C {
function f() public pure {}
}
function fun() {
C.f();
}
// ----
// TypeError 3419: (68-73): Cannot call function via contract type name.