solidity/test/libsolidity/syntaxTests/lvalues/functions.sol
2022-04-01 23:41:18 -05:00

16 lines
334 B
Solidity

contract C {
function f() internal {
}
function g() internal {
g = f;
}
function h() external {
}
function i() external {
this.i = this.h;
}
}
// ----
// TypeError 4247: (83-84='g'): Expression has to be an lvalue.
// TypeError 4247: (166-172='this.i'): Expression has to be an lvalue.