https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
g

GarouDan

03/25/2019, 11:39 AM
Hi guys, I would like to get the package name of a class using the kotlin common library. Does someone know if we can do this? For example, when using jvm we can do something like:
java.util.Date().javaClass.
package
.name
but can we do something similar to get the same result with
stdlib-common
?
It looks like we could use something like
::class.qualifiedName
, but when in javascript we receive something this:
Copy code
Error:(10, 39) Unsupported [This reflection API is not supported yet in JavaScript]
4 Views