KT-1597 optimized as/as?

This commit is contained in:
Alex Tkachman
2012-03-26 16:56:24 +02:00
parent 1c36fdf23c
commit 83ed0a846e
2 changed files with 31 additions and 15 deletions
@@ -43,7 +43,7 @@ public class TypeInfoTest extends CodegenTestCase {
Method foo = generateFunction();
Runnable r = newRunnable();
assertSame(r, foo.invoke(null, r));
assertThrows(foo, TypeCastException.class, null, new Object());
assertThrows(foo, ClassCastException.class, null, new Object());
}
public void testIsOperator() throws Exception {