solidity/test/libsolidity/semanticTests/libraries/library_struct_as_an_expression.sol

20 lines
243 B
Solidity
Raw Normal View History

library Arst {
struct Foo {
int256 Things;
int256 Stuff;
}
}
contract Tsra {
function f() public returns (uint256) {
Arst.Foo;
return 1;
}
}
// ====
// compileViaYul: also
// ----
// f() -> 1