K2: introduce JavaTypeParameterDefaultRepresentationWithDNN exp. feature

#KT-66447 Fixed
This commit is contained in:
Mikhail Glukhikh
2024-03-11 18:09:43 +01:00
committed by Space Team
parent 4464385fa9
commit cd20f31810
35 changed files with 627 additions and 6 deletions
@@ -0,0 +1,18 @@
// FULL_JDK
// LANGUAGE: +JavaTypeParameterDefaultRepresentationWithDNN
// 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
}