It would be too easy! 
    
    
    import streams, nesm
    
    serializable:
      type
        TA = object of RootObj
        TB = object of TA
          f: int
    
    var
      a: ref TA
      b: ref TB
    
    new(b)
    a = b
    
    echo stringify(serialize(a))
    
    
    
    lib/nim/system.nim(2833, 7) Error: unhandled exception: kind(thetype[1]) == 
nnkEmpty
     Inheritence not supported in serializable
    

Reply via email to