aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/514_using_for_with_non_library.sol
blob: 7e9612d00717a9c72343a68a7394bcb2c162ace6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// 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: (120-121): Library name expected.