01/17/2019, 11:41 PM
By default all Kotlin functions are mangled. You can use JsName annotation to expose this function
01/18/2019, 9:50 AM
@gildor I realise they are mangled but it looks like for inline function they aren't exported, not even in mangled form. I did have the JsName annotation specified.
01/18/2019, 10:00 AM
hm, interesting, they are exposed on JVM, maybe it’s different on JS, I don’t know actually.
Is your inline function doesn’t have reified generics?
01/18/2019, 2:02 PM
it does yes
01/20/2019, 11:33 AM
This is the case
Inline function with reified generic cannot be exposed (same on jvm), if you need one on public API you have to wrap it to common function and pass class or any other generic information to invoke inline reified function not from Kotlin code
01/21/2019, 1:17 PM
In the code I have written the inline function with reified generics appears to be exposed on jvm. I wrote a separate function that is only in the KotlinJS source code that doesn't use reified generics.