Check if using for refers to a library earlier.

This commit is contained in:
chriseth
2020-06-17 17:45:40 +02:00
parent 8d3c2ba6d9
commit 76468f19fe
6 changed files with 21 additions and 10 deletions
@@ -0,0 +1,10 @@
contract C {
struct S { uint t; }
function r() public {
S memory x;
x.d;
}
using S for S;
}
// ----
// TypeError: (113-114): Library name expected.