Hi

There seems to be an issue with repr on returned stack objects containing 
enums. See example below.

If I create the Ret object in local stack frame, it works. If I change Ret.data 
to uin32 it works even if returned from a function.
    
    
    type
      Status = enum
        Ok, Error
      
      Ret = object
        status:Status
        data:uint8
    
    proc test():Ret =
      return Ret(status:Ok,data:0)
    
    let a = test()
    echo "a ", a         # Ok
    echo "a ", repr(a)   # Prints "invalid data" for the status field
    

Reply via email to