Is possible to setup compiler for attach generic type to call function in Javascript? I need it for interactive deployment on Android via Rhino. I develop in Kotlin, then compile to Javascript and send to Rhino on Android phone where code is evaluated.
My problem is that code “Random.class in Kotlin written as javaClass<Random>()” is transformed to “javaClass()”, so I cannot get infomation from generic function about generic type. Solution in adding own parameter isn’t good due creating incompatibility versions (Kotlin->Java byte code and Kotlin->Javascript)
Could be possible add this generic type as last argument of calling function?