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

11 lines
255 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 memory _s) internal {
_s.d = 1;
}
}
// ----
// TypeError 4357: (120-121): Library name expected.