> class A(b: B) : B by b // IS_A via composition
I couldn't find the "B by b" syntax from the Kotlin docs, can you tell me that this does ?
I couldn't find the "B by b" syntax from the Kotlin docs, can you tell me that this does ?
Look at page 96 of this PDF file: https://kotlinlang.org/docs/kotlin-docs.pdf