Allow to convert nullable local / top to late-init since version 1.2

Enhancement for KT-12743
This commit is contained in:
Mikhail Glukhikh
2018-11-29 19:45:49 +03:00
parent 4cf266e99f
commit 4e1d8fcfd0
9 changed files with 36 additions and 10 deletions
@@ -1,4 +1,3 @@
// IS_APPLICABLE: false
fun test() {
<caret>var foo: String? = null
}
@@ -0,0 +1,3 @@
fun test() {
lateinit var foo: String
}
@@ -0,0 +1,5 @@
// IS_APPLICABLE: false
// LANGUAGE_VERSION: 1.1
fun test() {
<caret>var foo: String? = null
}
@@ -1,2 +1 @@
// IS_APPLICABLE: false
<caret>var foo: String? = null
@@ -0,0 +1 @@
lateinit var foo: String
@@ -0,0 +1,3 @@
// IS_APPLICABLE: false
// LANGUAGE_VERSION: 1.1
<caret>var foo: String? = null