test for KT-160

This commit is contained in:
Alex Tkachman
2011-09-05 13:58:29 +02:00
parent a8a438ffd3
commit a6d71f9361
@@ -134,4 +134,10 @@ public class PropertyGenTest extends CodegenTestCase {
public void testKt257 () throws Exception {
blackBoxFile("regressions/kt257.jet");
}
public void testKt160() throws Exception {
loadText("public val s = java.lang.Double.toString(1.0)");
final Method method = generateFunction("getS");
assertEquals(method.invoke(null), "1.0");
}
}