mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Better error message when trying to call things that are not functions
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user