https://kotlinlang.org logo
#reflect
Title
# reflect
m

mp911de

07/25/2017, 1:15 PM
Hi there. Is there some documentation on Kotlin’s synthetic constructor generation along with default arguments (bitmask used for defaulting)?
u

udalov

07/28/2017, 11:55 AM
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
2 Views