Fix some tests
This commit is contained in:
+9
@@ -98,4 +98,13 @@
|
|||||||
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?:'</problem_class>
|
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?:'</problem_class>
|
||||||
<description>If-Then foldable to '?:'</description>
|
<description>If-Then foldable to '?:'</description>
|
||||||
</problem>
|
</problem>
|
||||||
|
<problem>
|
||||||
|
<file>longLine.kt</file>
|
||||||
|
<line>8</line>
|
||||||
|
<module>light_idea_test_case</module>
|
||||||
|
<package>longLine</package>
|
||||||
|
<entry_point TYPE="method" FQNAME="longLine.LongLineKt void main()" />
|
||||||
|
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?:'</problem_class>
|
||||||
|
<description>If-Then foldable to '?:'</description>
|
||||||
|
</problem>
|
||||||
</problems>
|
</problems>
|
||||||
|
|||||||
+1
@@ -1,5 +1,6 @@
|
|||||||
// PROBLEM: none
|
// PROBLEM: none
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
// DISABLE-ERRORS
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
val t: String? = "abc"
|
val t: String? = "abc"
|
||||||
if (t != null<caret>) t else throw KotlinNullPointerException()
|
if (t != null<caret>) t else throw KotlinNullPointerException()
|
||||||
|
|||||||
+1
@@ -1,5 +1,6 @@
|
|||||||
// PROBLEM: none
|
// PROBLEM: none
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
// DISABLE-ERRORS
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
val t: String? = "abc"
|
val t: String? = "abc"
|
||||||
if (t == null<caret>) throw NullPointerException() else t
|
if (t == null<caret>) throw NullPointerException() else t
|
||||||
|
|||||||
+18
@@ -145,4 +145,22 @@
|
|||||||
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?.'</problem_class>
|
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?.'</problem_class>
|
||||||
<description>Foldable if-then</description>
|
<description>Foldable if-then</description>
|
||||||
</problem>
|
</problem>
|
||||||
|
<problem>
|
||||||
|
<file>resultCall.kt</file>
|
||||||
|
<line>6</line>
|
||||||
|
<module>light_idea_test_case</module>
|
||||||
|
<package>resultCall</package>
|
||||||
|
<entry_point TYPE="field" FQNAME="resultCall.ResultCallKt result" />
|
||||||
|
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?.'</problem_class>
|
||||||
|
<description>Foldable if-then</description>
|
||||||
|
</problem>
|
||||||
|
<problem>
|
||||||
|
<file>noStdResultInCallChain.kt</file>
|
||||||
|
<line>7</line>
|
||||||
|
<module>light_idea_test_case</module>
|
||||||
|
<package>noStdResultInCallChain</package>
|
||||||
|
<entry_point TYPE="field" FQNAME="noStdResultInCallChain.NoStdResultInCallChainKt result" />
|
||||||
|
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?.'</problem_class>
|
||||||
|
<description>Foldable if-then</description>
|
||||||
|
</problem>
|
||||||
</problems>
|
</problems>
|
||||||
|
|||||||
Reference in New Issue
Block a user