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

17 lines
204 B
Solidity
Raw Normal View History

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