KT-2823 TypeCastException has no message

#KT-2823 Fixed
This commit is contained in:
Natalia.Ukhorskaya
2012-10-10 14:45:43 +04:00
parent a31b748092
commit 78d22e9f81
4 changed files with 39 additions and 4 deletions
@@ -32,7 +32,7 @@ public class NamespaceGenTest extends CodegenTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
createEnvironmentWithMockJdkAndIdeaAnnotations();
}
public void testPSVM() throws Exception {
@@ -477,6 +477,10 @@ public class NamespaceGenTest extends CodegenTestCase {
blackBoxFile("checkCast.jet");
}
public void testTypeCastException() throws Exception {
blackBoxFile("typeCastException.jet");
}
public void testPutBooleanAsVoid() throws Exception {
loadText("class C(val x: Int) { { x > 0 } } fun box() { val c = C(0) } ");
final Method main = generateFunction();