pragma solidity ^0.4.18; contract Types { enum week_days { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday } week_days week; week_days choice; week_days constant default_value = week_days.Sunday; function set_value() public { choice = week_days.Thursday; } function get_choice( ) public view returns (week_days) { return choice; } function getdefaultvalue( ) public pure returns(week_days) { return default_value; } }
0.4.18