optimization of toString for primitive types and "$expr"

- intrinsic toString for promitive types added to stdlib
- utility method added to CodegenUtil
- optimization logic added to generation of interpolating string
This commit is contained in:
Alex Tkachman
2012-09-17 13:00:02 +03:00
parent 7a00dd1551
commit a4e272d7c6
8 changed files with 98 additions and 25 deletions
@@ -119,7 +119,7 @@ public class PrimitiveTypesTest extends CodegenTestCase {
public void testByteLess() throws Exception {
binOpTest("fun foo(a: Byte, b: Byte): Boolean = a < b",
Byte.valueOf((byte) 126), Byte.valueOf((byte) 127), true);
Byte.valueOf((byte) 126), Byte.valueOf((byte) 127), true);
}
public void testBooleanConstant() throws Exception {
@@ -448,8 +448,4 @@ public class PrimitiveTypesTest extends CodegenTestCase {
public void testEmptyRanges() throws Exception {
blackBoxFile("emptyRanges.kt");
}
public void testToString() throws Exception {
blackBoxFile("intrinsics/tostring.kt");
}
}