You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FE: Revert incorrect SAM conversion enhancements brought to K2
NB: It also makes the test for KT-76453 (hugeMixedCapturedTypes.kt)
pass the BACKEND phase, which was previously impossible due to
the previous seemingly exponential algorithm
^KT-79535 Fixed
Copy file name to clipboardExpand all lines: compiler/testData/diagnostics/tests/j+k/samByProjectedType/javaSamTypeWithRecursionInBounds.fir.txt
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,18 @@
1
1
FILE: main.kt
2
2
public final fun test_1(): R|kotlin/Unit| {
3
-
Q|A|.R|/A.foo*s|(<L> = SAM(foo@fun <anonymous>(a: <ERROR TYPE REF: Parameter B has a cycle in its upper bounds>): <ERROR TYPE REF: Parameter A has a cycle in its upper bounds> <inline=NoInline> {
3
+
Q|A|.R|/A.foo*s|(<L> = SAM(foo@fun <anonymous>(a: <ERROR TYPE REF: Parameter A has a cycle in its upper bounds>): <ERROR TYPE REF: Parameter B has a cycle in its upper bounds> <inline=NoInline> {
4
4
Null(null)!!
5
5
}
6
6
))
7
7
}
8
8
public final fun test_2(): R|kotlin/Unit| {
9
-
Q|A|.R|/A.foo*s|(<L> = SAM(foo@fun <anonymous>(it: <ERROR TYPE REF: Parameter B has a cycle in its upper bounds>): <ERROR TYPE REF: Parameter A has a cycle in its upper bounds> <inline=NoInline> {
9
+
Q|A|.R|/A.foo*s|(<L> = SAM(foo@fun <anonymous>(it: <ERROR TYPE REF: Parameter A has a cycle in its upper bounds>): <ERROR TYPE REF: Parameter B has a cycle in its upper bounds> <inline=NoInline> {
10
10
Null(null)!!
11
11
}
12
12
))
13
13
}
14
14
public final fun test_3(): R|kotlin/Unit| {
15
-
Q|A|.R|/A.bar*s|(<L> = SAM(bar@fun <anonymous>(a: <ERROR TYPE REF: Parameter B has a cycle in its upper bounds>, b: <ERROR TYPE REF: Parameter C has a cycle in its upper bounds>): <ERROR TYPE REF: Parameter A has a cycle in its upper bounds> <inline=NoInline> {
15
+
Q|A|.R|/A.bar*s|(<L> = SAM(bar@fun <anonymous>(a: <ERROR TYPE REF: Parameter A has a cycle in its upper bounds>, b: <ERROR TYPE REF: Parameter B has a cycle in its upper bounds>): <ERROR TYPE REF: Parameter C has a cycle in its upper bounds> <inline=NoInline> {
R|/A.A|().R|/A.foo|(<L> = SAM(foo@fun <anonymous>(x: <ERROR TYPE REF: Parameter F has a cycle in its upper bounds>): R|kotlin/CharSequence!| <inline=NoInline> {
Q|A|.R|/A.bar*s|(<L> = SAM(bar@fun <anonymous>(x: <ERROR TYPE REF: Parameter F has a cycle in its upper bounds>): R|kotlin/CharSequence!| <inline=NoInline> {
8
8
^ String()
9
9
}
10
10
))
11
+
Q|A|.R|/A.bar*s<CS errors: /A.bar>#|(R|/Function|<<ERROR TYPE REF: Cannot infer argument for type parameter E>, <ERROR TYPE REF: Cannot infer argument for type parameter F>>(<L> = Function@fun <anonymous>(x: <ERROR TYPE REF: Cannot infer argument for type parameter F>): <ERROR TYPE REF: Cannot infer argument for type parameter E> <inline=NoInline> {
0 commit comments