solidity/test/libsolidity/syntaxTests/using/using_struct_for_struct.sol

11 lines
232 B
Solidity
Raw Normal View History

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