Hi, I was wondering why is the constructor for Arr...
# kotlin-native
l
Hi, I was wondering why is the constructor for Array inlined in Kotlin native. I looked up the source and it seemed to be using some annotations for "compiler magic". https://github.com/JetBrains/kotlin-native/blob/master/runtime/src/main/kotlin/kotlin/Array.kt
o
lucasas: yes, to allow non-local returns from init lambdas
m
Array constructor is also
inline
in Kotlin-JVM, maybe because this class is only compiler’s fantasy 🙂