Modules are pure.

This commit is contained in:
chriseth
2020-06-18 18:28:04 +02:00
parent b1d22ab2c8
commit cd2cc76f20
4 changed files with 47 additions and 1 deletions
@@ -0,0 +1,14 @@
==== Source: a ====
struct S { uint x; }
==== Source: b ====
import "a" as A;
struct T { uint x; }
contract C {
function f() public pure {
T;
A.S;
}
}
// ----
// Warning: (b:90-91): Statement has no effect.
// Warning: (b:101-104): Statement has no effect.