Now's your chance to shape how a <https://youtrack...
# power-assert
b
Now's your chance to shape how a power-assert bug should be fixed! Say we have the following code:
Copy code
val 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
?
Copy code
assert((str::foo).invoke())
        |  |      |
        |  |      false
        |  val kotlin.String.foo: kotlin.Boolean
        Some text
2️⃣ Or below
foo
?
Copy code
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.
1️⃣ 1
2️⃣ 8
1
j
I don't view
::
as much more than a "different" operator than
.
, so they feel like they should be aligned.