K1/K2: add test for Future.get case

This commit is contained in:
Mikhail Glukhikh
2024-03-08 11:42:23 +01:00
committed by Space Team
parent f597c02327
commit 633e96b966
6 changed files with 48 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// FIR_IDENTICAL
// FULL_JDK
// JVM_TARGET: 1.8
import java.util.concurrent.Future
import java.util.concurrent.atomic.AtomicReference
fun foo(future: Future<String?>) {
future.get()<!UNSAFE_CALL!>.<!>length
}
fun bar(threadLocal: ThreadLocal<String?>) {
threadLocal.get()<!UNSAFE_CALL!>.<!>length
}
fun baz(ref: AtomicReference<String?>) {
ref.get()<!UNSAFE_CALL!>.<!>length
}