Fixed one more case of redundant type arguments

This commit is contained in:
Valentin Kipyatkov
2017-06-06 23:24:30 +03:00
parent 4b0cbc61d1
commit ca7a0da10f
8 changed files with 31 additions and 3 deletions
@@ -214,4 +214,13 @@
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unnecessary type argument</problem_class>
<description>Remove explicit type arguments</description>
</problem>
<problem>
<file>lambdaValue.kt</file>
<line>5</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="lambdaValue.kt" />
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Unnecessary type argument</problem_class>
<description>Remove explicit type arguments</description>
</problem>
</problems>
@@ -0,0 +1,6 @@
// IS_APPLICABLE: true
// WITH_RUNTIME
fun foo(): List<String> = run {
listOf<caret><String>()
}
@@ -0,0 +1,6 @@
// IS_APPLICABLE: true
// WITH_RUNTIME
fun foo(): List<String> = run {
listOf()
}