solidity/test/libsolidity/syntaxTests/metaTypes/name_other_contract.sol

11 lines
161 B
Solidity
Raw Normal View History

contract Test {
function f() public pure returns (string memory) {
return type(C).name;
}
}
contract C {
function f() pure public {
}
}