Proposal: allow shorthand reflective property access when extension receiver is a KClass
Right now, it’s possible to access properties reflectively from outside the class by prepending its name, like MyClass::someProp. You can also access the property within the class definition, simply as ::someProp. My proposal is to make the shorthand version possible when the current extension or context receiver is a KClass, like so:
fun KClass.foo() {
::someProp // do something with it
}
The use case is builders that are abstracted away from any particular instance of MyClass, but...