Revert back Inspection: convert initialized val to non-null type

Relates to ^KT-35757
Relates to ^KT-19321
This commit is contained in:
Vladimir Dolzhenko
2020-09-09 23:36:41 +02:00
parent 12ebd429bc
commit 6f03e42ef7
13 changed files with 1 additions and 152 deletions
@@ -1 +0,0 @@
org.jetbrains.kotlin.idea.inspections.ConvertInitializedValToNonNullTypeInspection
@@ -1,5 +0,0 @@
fun foo() {
val s1: String?<caret> = bar()
}
fun bar(): String = ""
@@ -1,5 +0,0 @@
fun foo() {
val s1: String = bar()
}
fun bar(): String = ""
@@ -1,4 +0,0 @@
fun foo() {
val s0: String = ""
val s1: String?<caret> = s0
}
@@ -1,4 +0,0 @@
fun foo() {
val s0: String = ""
val s1: String = s0
}
@@ -1,3 +0,0 @@
fun foo() {
val s: String?<caret> = "Hello"
}
@@ -1,3 +0,0 @@
fun foo() {
val s: String = "Hello"
}
@@ -1,7 +0,0 @@
// PROBLEM: none
fun foo() {
val s1: String? = bar()
val s2: String?<caret> = null
}
fun bar(): String? = ""