mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
TypeChecker: Add test to increase coverage
This commit is contained in:
parent
f003696d7e
commit
419a12db03
@ -0,0 +1,8 @@
|
||||
contract C {
|
||||
mapping(uint => uint) m;
|
||||
function f() public {
|
||||
m[] = 3;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (76-79): Index expression cannot be omitted.
|
Loading…
Reference in New Issue
Block a user