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
@@ -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)