New J2K: implement mutability inference in post-processing

#KT-24293 fixed
#KT-19603 fixed
This commit is contained in:
Ilya Kirillov
2019-09-02 18:56:50 +03:00
parent c28515be59
commit f61bb5aa39
81 changed files with 1263 additions and 231 deletions
+1 -1
View File
@@ -3,5 +3,5 @@ import java.util.ArrayList
fun foo() {
bar(ArrayList<String?>())
bar(ArrayList<String>())
}
@@ -2,4 +2,4 @@
import java.util.ArrayList
fun foo() = ArrayList<String?>()
fun foo() = ArrayList<String>()
+1 -1
View File
@@ -3,5 +3,5 @@ import java.util.ArrayList
fun foo() {
bar(/*comment*/ArrayList<String?>())
bar(/*comment*/ArrayList<String>())
}
@@ -5,7 +5,7 @@ import java.util.ArrayList
class JavaClass {
internal fun foo(file: File?, target: List<String?>?) {
internal fun foo(file: File?, target: MutableList<String>?) {
val list = ArrayList<String>()
if (file != null) {
list.add(file.name)