Better error message when trying to call things that are not functions

This commit is contained in:
Kamil Śliwak
2023-04-04 17:30:37 +02:00
parent 293690e5a4
commit a019f400d0
13 changed files with 46 additions and 8 deletions
@@ -0,0 +1,6 @@
contract C {
mapping (uint => uint) m;
uint a = m(1000);
}
// ----
// TypeError 5704: (56-63): Mapping is not callable.