Highlight use of toString() inside string interpolation as redundant #KT-10731 Fixed

This commit is contained in:
Kirill Rakhman
2016-08-14 15:20:44 +03:00
committed by Mikhail Glukhikh
parent 52dacd1d49
commit d68a681db5
17 changed files with 167 additions and 0 deletions
@@ -0,0 +1,10 @@
<problems>
<problem>
<file>test.kt</file>
<line>1</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/test.kt" />
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Remove redundant call to 'toString()' in string template</problem_class>
<description>Redundant 'toString()' call in string template</description>
</problem>
</problems>
@@ -0,0 +1 @@
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.RemoveToStringInStringTemplateInspection
@@ -0,0 +1 @@
val z = "a${"b".toString()}"