JS backend: report expression location on error in StringTemplateTranslator.

(cherry picked from commit a2765d3)
This commit is contained in:
develar
2013-08-23 22:12:37 +04:00
committed by Zalim Bashorov
parent 1c173c5224
commit e39943f9bd
2 changed files with 8 additions and 5 deletions
@@ -1,5 +1,10 @@
package foo
// test String template must have one or more entries.
public class Fe {
fun open(method:String, url: String, async: Boolean = true, user: String = "", password: String = "") = "$method $url $async $user $password"
}
fun box(): Boolean {
val a = "abc"
val b = "def"
@@ -10,5 +15,5 @@ fun box(): Boolean {
val v1 = null
if ("returns null null" != "returns $v1 ${null}") return false
return true
return Fe().open("22", "33") == "22 33 true "
}