Fix initialization order in REPL

#KT-6843 Fixed
This commit is contained in:
Alexander Udalov
2015-02-22 16:12:38 +03:00
parent e47a156e36
commit cf0842b135
4 changed files with 44 additions and 14 deletions
@@ -0,0 +1,5 @@
>>> [data] class Person(val name: String)
>>> var x: String? = "hello"
>>> val y = x?.let { Person(it) }
>>> y
Person(name=hello)
@@ -0,0 +1,4 @@
>>> val x = ""
>>> val y = x
>>> x == y
true