#.require. clr enum Medium of uint64 air land water class Aircraft def canTravelIn(medium as Medium) as bool return medium == Medium.air # former bug caused compiler to barf def assignSystemEnumResultTypeToLocalVar platform = Environment.osVersion.platform # former bug. CLR type was not scanned CobraCore.noOp(platform) def main is shared assert Aircraft().canTravelIn(Medium.air) assert not Aircraft().canTravelIn(Medium.water)