solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/514_using_for_with_non_library.sol

11 lines
243 B
Solidity
Raw Normal View History

// This tests a crash that was resolved by making the first error fatal.
library L {
struct S { uint d; }
using S for S;
function f(S _s) internal {
_s.d = 1;
}
}
// ----
// TypeError: (120-121): Library name expected.