solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/492_do_not_crash_on_not_lvalue.sol

10 lines
225 B
Solidity
Raw Normal View History

// This checks for a bug that caused a crash because of continued analysis.
contract C {
mapping (uint => uint) m;
function f() public {
m(1) = 2;
}
}
// ----
// TypeError: (153-157): Type is not callable