iseki
03/12/2020, 2:50 PMinline fun <reified T: Any> awsl()
If I use it as: awsl<List<String>>()
How to get the String
from T
? Thank youEvan R.
03/12/2020, 2:55 PMtypeOf<T>()
as of Kotlin 1.3.50 according to this StackOverflow answer: https://stackoverflow.com/a/36253311Evan R.
03/12/2020, 2:56 PMKType
from that function, then you can use KType.arguments
to get the parametrized type arguments of the typeiseki
03/12/2020, 3:00 PMKroppeb
03/12/2020, 3:33 PMList
?