added test for KT-242

This commit is contained in:
Alex Tkachman
2011-08-31 13:58:26 +02:00
parent d6a9e89175
commit 13ca1ea274
2 changed files with 22 additions and 1 deletions
@@ -0,0 +1,19 @@
fun box() : String {
val i: Int? = 7
val j: Int? = null
val k = 7
//verify errors
if (i == 7) {}
if (7 == i) {}
if (j == 7) {}
if (7 == j) {}
if (i == k) {}
if (k == i) {}
if (j == k) {}
if (k == j) {}
return "OK"
}
@@ -259,5 +259,7 @@ public class PrimitiveTypesTest extends CodegenTestCase {
assertEquals(expected, main.invoke(null, arg1, arg2));
}
public void testKt242 () throws Exception {
blackBoxFile("regressions/kt242.jet");
}
}