test for obsolete KT-889
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user