Don't call redundant toString for variables of type Int

Refactor StringTemplateTranslator a little
This commit is contained in:
pTalanov
2012-10-01 21:15:13 +04:00
parent b7b8c5a757
commit 5bc4fc458a
3 changed files with 33 additions and 9 deletions
@@ -71,6 +71,10 @@ public final class StringTest extends AbstractExpressionTest {
fooBoxTest();
}
public void testNumbersInTemplate() throws Exception {
fooBoxIsValue("2354");
}
private void checkHasNoToStringCalls() throws IOException {
for (EcmaVersion ecmaVersion : DEFAULT_ECMA_VERSIONS) {
String filePath = getOutputFilePath(getTestName(true) + ".kt", ecmaVersion);