What does the === operator do in Kotlin?
<p>What does operator <code>===</code> do in Kotlin? How does it work? Can we check reference equality?</p>
<pre><code>val a: Int = 10000
print(a === a) // Prints 'true'
val boxedA: Int? = a
val anotherBoxedA: Int? = a
print(boxedA === anotherBoxedA) // !!!Prints 'false'!!!
</code></pre>
<p>but in case:</p>
<pre><code>var a : Int = 1000
var b : Int = 1000
println(a === b) // print 'true' !!!
</code></pre>
<p><code>val a: Int = 1000</code> and <code>val b: Int = 1000</code> is not in range <code>-128..127</code>, but still <code>===</code> is true or compiler in some cases understand that it can be taken one value?</p>