test for obsolete KT-889

This commit is contained in:
Alex Tkachman
2012-01-02 09:36:13 +02:00
parent a25416e5cf
commit c3725054eb
2 changed files with 13 additions and 0 deletions
@@ -0,0 +1,9 @@
fun Int.plus(s: String) : String {
System.out?.println("Int.plus(s: String) called")
return s
}
fun box() : String {
val s = "${1 + "a"}"
return if(s == "a") "OK" else "fail"
}
@@ -64,4 +64,8 @@ public class StringsTest extends CodegenTestCase {
public void testKt894() throws Exception {
blackBoxFile("regressions/kt894.jet");
}
public void testKt889() throws Exception {
blackBoxFile("regressions/kt889.jet");
}
}