bnorm
03/25/2026, 1:44 PMval String.foo: Boolean get() = false
fun test(str: String) {
assert((str::foo).invoke())
}
Where would you want the placement of the bound property reference value placed?
1️⃣ Below ::foo?
assert((str::foo).invoke())
| | |
| | false
| val kotlin.String.foo: kotlin.Boolean
Some text
2️⃣ Or below foo?
assert((str::foo).invoke())
| | |
| | false
| val kotlin.String.foo: kotlin.Boolean
Some text
Similarly, consider unbound property references (String::foo) and class references (String::class), as I would like all of these to behave the same.jw
03/26/2026, 1:29 AM:: as much more than a "different" operator than ., so they feel like they should be aligned.