Constraint priorities integrated

This commit is contained in:
Andrey Breslav
2011-12-14 13:12:36 +04:00
committed by Nikolay Krasko
parent 3cf7a44840
commit 0a2108d4d0
16 changed files with 237 additions and 98 deletions
@@ -24,7 +24,7 @@ public class JetNpeTest extends CodegenTestCase {
}
public void testNull () throws Exception {
loadText("fun box() = if(null.sure() == 10) \"OK\" else \"fail\"");
loadText("fun box() = if((null : Int?).sure() == 10) \"OK\" else \"fail\"");
// System.out.println(generateToText());
Method box = generateFunction("box");
assertThrows(box, NullPointerException.class, null);