https://kotlinlang.org logo
#getting-started
Title
# getting-started
r

revbingo

12/01/2016, 8:53 PM
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