Hi there. Is there some documentation on Kotlin’s ...
# reflect
m
Hi there. Is there some documentation on Kotlin’s synthetic constructor generation along with default arguments (bitmask used for defaulting)?
u
There's no documentation, but you can look at the implementation of
KCallableImpl.callDefaultMethod
which will give you a good idea what those masks mean: https://github.com/JetBrains/kotlin/blob/master/core/reflection.jvm/src/kotlin/reflect/jvm/internal/KCallableImpl.kt#L115