KT-881 overoptimized + in string templates

This commit is contained in:
Alex Tkachman
2012-01-02 08:35:54 +02:00
parent e29c54cb6e
commit 12af19e991
3 changed files with 20 additions and 3 deletions
@@ -0,0 +1,6 @@
fun box() : String {
val b = 1+1
if ("$b" != "2") return "fail"
if ("${1+1}" != "2") return "fail"
return "OK"
}