hi everyone. I have a class (from a 3rd party - s...
# getting-started
r
hi everyone. I have a class (from a 3rd party - specifically the AWS SDK) that I’d like to decorate so that I can store some additional metadata with it. I was really hoping to make use of delegation e.g.
Copy code
class ExtendedReservation(val originalReservation: ReservedInstances) : ReservedInstances by originalReservation
, but this doesn’t work because ReservedInstances isn’t an interface