The code to compare two property references seems ...
# getting-started
p
The code to compare two property references seems to work at runtime even without kotlin-reflect.jar, even though there is an IDE warning. Is that just a happy coincidence, or is that something that can be relied upon?
Copy code
class KotlinClass(var thing: String? = null)

fun main(args: Array<String>) {
    val p1 = KotlinClass::thing
    val p2 = KotlinClass::thing
    println(p1 == p2) // true, but warns about missing kotlin-reflect.jar
    println(p1 === p2) // false
}