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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user