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,9 @@
==== Source: A.sol ====
==== Source: B.sol ====
import "A.sol" as A;
contract C {
uint a = A(1000);
}
// ----
// TypeError 5704: (B.sol:48-55): Module is not callable.