solidity/test/libsolidity/syntaxTests/functionCalls/this_not_callable.sol

10 lines
190 B
Solidity
Raw Normal View History

contract C {
function f() public returns (uint, uint) {
try this() {
} catch Error(string memory) {
}
}
}
// ----
// TypeError: (72-78): Type is not callable