No, KClass.extensionProperties returns extension properties declared in the given class. The property you're looking for is declared in the package. Unfortunately there's no API currently to list properties in the package, however you can use a simple property reference for that: Foo::baz
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
javaClass<MyClass>() not as nice as MyClass.class
|
9 | 2705 | June 9, 2014 | |
| Shorter sntax for Kotlin/Java class reference | 7 | 5693 | March 5, 2017 | |
| Passing java class as parameter | 3 | 29773 | September 4, 2016 | |
|
What is the Kotlin equivalent of Java's MyClass.class?
|
3 | 2797 | April 10, 2012 | |
|
This.getClass().newInstance() in Kotlin?
|
4 | 5197 | May 6, 2012 |