KJS: fix compiler crash when using inline function inside string template

#KT-12586 Fixed
This commit is contained in:
Zalim Bashorov
2016-12-02 22:09:28 +03:00
parent 8ccc00f3d4
commit b42fe06933
3 changed files with 17 additions and 3 deletions
@@ -0,0 +1,9 @@
package foo
inline fun foo(): Any? = "foo()"
fun box(): String {
assertEquals("foo()", "${foo()}")
assertEquals("aaa foo() bb", "aaa ${foo()} bb")
return "OK"
}