Do not inline non-const vals

#KT-10425 Fixed
This commit is contained in:
Denis Zharkov
2016-02-05 12:33:57 +03:00
parent f2edcd99a8
commit 0efe28a12a
4 changed files with 39 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
const val y = "cde"
fun foo(x : String) : String {
val y = "cde"
when (x) {
"abc", "${y}" -> return "abc_cde"
"e" + "fg", "ghi" -> return "efg_ghi"