[FIR] Lambdas without contracts should be considered repeatable

^KT-63777 Fixed
This commit is contained in:
Brian Norman
2024-01-02 11:58:22 -06:00
committed by Space Team
parent 8a3f850bca
commit 3346cc4b19
4 changed files with 10 additions and 10 deletions
@@ -30,7 +30,7 @@ fun baz(s: String?) {
<!SMARTCAST_IMPOSSIBLE!>x<!>.hashCode()
}
run {
<!SMARTCAST_IMPOSSIBLE!>x<!>.hashCode()
x<!UNSAFE_CALL!>.<!>hashCode()
x = null
}
}
@@ -40,7 +40,7 @@ fun gaz(s: String?) {
var x = s
if (x != null) {
run {
<!SMARTCAST_IMPOSSIBLE!>x<!>.hashCode()
x<!UNSAFE_CALL!>.<!>hashCode()
x = null
}
run {