Fixes internal compiler error with an unused reference to module member.

This commit is contained in:
Christian Parpart
2020-10-12 11:56:01 +02:00
parent b0acf5dc86
commit 712d0805eb
3 changed files with 21 additions and 0 deletions
@@ -0,0 +1,15 @@
==== Source: s1.sol ====
import "s1.sol" as A;
library L {
function f() internal pure {}
}
contract C
{
function test() public pure {
A.L;
}
}
// ----
// Warning 6133: (s1.sol:127-130): Statement has no effect.