Delay ForbidInferringPostponedTypeVariableIntoDeclaredUpperBound to 2.0
#KT-57395 Fixed Related to KT-47986
This commit is contained in:
committed by
Space Team
parent
5ef62c8760
commit
a43a16b25b
Vendored
+2
-3
@@ -1,4 +1,3 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// LANGUAGE: +NoBuilderInferenceWithoutAnnotationRestriction
|
||||
// SKIP_TXT
|
||||
@@ -9,7 +8,7 @@ fun <T> List<T>.myGenericExt() {}
|
||||
fun <R> a(first: R, second: (List<R>) -> Unit) {}
|
||||
|
||||
fun test1() {
|
||||
a(
|
||||
<!INFERRED_INTO_DECLARED_UPPER_BOUNDS!>a<!>(
|
||||
buildList { add("") },
|
||||
second = {
|
||||
it.myGenericExt()
|
||||
@@ -69,4 +68,4 @@ fun test4() {
|
||||
left = { add(1) },
|
||||
right = { add("") }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user