FIR: fix a bunch of issues after DiagnosticsReporter refactoring related to reporting diagnostic on null source

This commit is contained in:
Kirill Rakhman
2023-01-05 15:00:30 +01:00
committed by Space Team
parent a7edf5b83e
commit 69f2e8826a
27 changed files with 74 additions and 42 deletions
@@ -20,7 +20,7 @@ fun foo(a: () -> Unit, b: () -> Unit, c: () -> Unit, d: () -> Unit) {
}
override fun run() {
<!LEAKED_IN_PLACE_LAMBDA!>c()<!>
<!LEAKED_IN_PLACE_LAMBDA!>c<!>()
}
}
@@ -17,7 +17,7 @@ fun foo(a: () -> Unit, b: () -> Unit, c: () -> Unit, d: () -> Unit, e: () -> Uni
val leaked: Any
constructor() {
<!LEAKED_IN_PLACE_LAMBDA!>b()<!>
<!LEAKED_IN_PLACE_LAMBDA!>b<!>()
}
init {
@@ -25,7 +25,7 @@ fun foo(a: () -> Unit, b: () -> Unit, c: () -> Unit, d: () -> Unit, e: () -> Uni
}
fun run() {
<!LEAKED_IN_PLACE_LAMBDA!>d()<!>
<!LEAKED_IN_PLACE_LAMBDA!>d<!>()
}
}
@@ -9,7 +9,7 @@ fun foo(a: () -> Unit, b: () -> Unit) {
fun localFun() {
<!LEAKED_IN_PLACE_LAMBDA!>a<!>.invoke()
<!LEAKED_IN_PLACE_LAMBDA!>a()<!>
<!LEAKED_IN_PLACE_LAMBDA!>a<!>()
}
localFun()