solidity/test/libsolidity/syntaxTests/bound/bound_to_struct.sol
2022-04-01 23:41:18 -05:00

11 lines
236 B
Solidity

contract C {
struct S { uint t; }
function r() public {
S memory x;
x.d;
}
using S for S;
}
// ----
// TypeError 4357: (113-114='S'): Library name expected. If you want to attach a function, use '{...}'.