Constraint priorities integrated
This commit is contained in:
committed by
Nikolay Krasko
parent
3cf7a44840
commit
0a2108d4d0
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user