blob: dd741dcef83e7dfad6201f3448cd2bac73419799 [file] [log] [blame]
// KJS_WITH_FULL_RUNTIME
class Template() {
val collected = ArrayList<String>()
operator fun String.unaryPlus() {
collected.add(this@unaryPlus)
}
fun test() {
+ "239"
}
}
fun box() : String {
val u = Template()
u.test()
return if(u.collected.size == 1 && u.collected.get(0) == "239") "OK" else "fail"
}