Is this a Kotlin REPL bug?
I can define a value in the Kotlin REPL like this (recursively) without getting an error:
val s: String = s
And now I am getting 's' of type NotNull but null.
And I can do something about this value NotNull
with NPE:
>>> val s: String = s
>>> s.length
java.lang.NullPointerException
You can try it on your own Kotlin REPL, it works every time.
I am using Kotlin version 1.1.2-3.
+3
source to share