K2: introduce JavaTypeParameterDefaultRepresentationWithDNN exp. feature
#KT-66447 Fixed
This commit is contained in:
committed by
Space Team
parent
4464385fa9
commit
cd20f31810
Vendored
+1
@@ -1,4 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// LANGUAGE: -JavaTypeParameterDefaultRepresentationWithDNN
|
||||
// ISSUE: KT-57014
|
||||
// FULL_JDK
|
||||
// JVM_TARGET: 1.8
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// LANGUAGE: +JavaTypeParameterDefaultRepresentationWithDNN
|
||||
// ISSUE: KT-57014
|
||||
// FULL_JDK
|
||||
// JVM_TARGET: 1.8
|
||||
|
||||
import java.util.function.Supplier
|
||||
|
||||
fun main() {
|
||||
val sam = Supplier<String> {
|
||||
<!ARGUMENT_TYPE_MISMATCH!>foo()<!>
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(): String? = null
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// LANGUAGE: +JavaTypeParameterDefaultRepresentationWithDNN
|
||||
// ISSUE: KT-57014
|
||||
// FULL_JDK
|
||||
// JVM_TARGET: 1.8
|
||||
|
||||
import java.util.function.Supplier
|
||||
|
||||
fun main() {
|
||||
val sam = Supplier<String> {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(): String? = null
|
||||
Reference in New Issue
Block a user