optimized sure for non-nullable types

This commit is contained in:
Alex Tkachman
2011-12-03 18:56:54 +02:00
parent d33d1367de
commit d8e6c18cfe
5 changed files with 36 additions and 13 deletions
@@ -8,7 +8,7 @@ import java.lang.reflect.Method;
public class JetNpeTest extends CodegenTestCase {
public void testStackTrace () {
try {
Intrinsics.sure(null);
Intrinsics.throwNpe();
fail("No Sure thrown");
}
catch (NullPointerException e) {