Reapply "Only create descriptors for candidates with lambda args"
#KT-36247 fixed A lot of testdata changed because significanly less (error) descriptors are created for unresolved types, so diagnostics became different.
This commit is contained in:
@@ -119,8 +119,7 @@ L3 [after inlined declaration]:
|
||||
mark(println(y))
|
||||
call(println(y), println|<v5>) -> <v6>
|
||||
magic[UNRESOLVED_CALL](DEBUG_INFO_SMARTCAST) -> <v7>
|
||||
mark(!DEBUG_INFO_SMARTCAST)
|
||||
call(!DEBUG_INFO_SMARTCAST, <ERROR FUNCTION>|<v7>) -> <v8>
|
||||
magic[UNRESOLVED_CALL](!DEBUG_INFO_SMARTCAST|<v7>) -> <v8>
|
||||
2 jmp(L7) NEXT:[merge(if (callsAndInverts(x !is String) { y = 42 }) { println(y) <!DEBUG_INFO_SMARTCAST!>x<!>.length } else { println(y) x.<!UNRESOLVED_REFERENCE!>length<!> }|<v8>, <v12>) -> <v13>]
|
||||
L6 [else branch]:
|
||||
3 mark({ println(y) x.<!UNRESOLVED_REFERENCE!>length<!> }) PREV:[jf(L6|<v4>)]
|
||||
@@ -203,8 +202,7 @@ L4 [after inlined declaration]:
|
||||
mark(println(y))
|
||||
call(println(y), println|<v8>) -> <v9>
|
||||
magic[UNRESOLVED_CALL](DEBUG_INFO_SMARTCAST) -> <v10>
|
||||
mark(!DEBUG_INFO_SMARTCAST)
|
||||
call(!DEBUG_INFO_SMARTCAST, <ERROR FUNCTION>|<v10>) -> <v11>
|
||||
magic[UNRESOLVED_CALL](!DEBUG_INFO_SMARTCAST|<v10>) -> <v11>
|
||||
2 jmp(L8) NEXT:[merge(if (unknownBoolean && callsAndInverts(x !is String) { y = 42 }) { println(y) <!DEBUG_INFO_SMARTCAST!>x<!>.length } else { println(y) x.<!UNRESOLVED_REFERENCE!>length<!> }|<v11>, <v15>) -> <v16>]
|
||||
L7 [else branch]:
|
||||
3 mark({ println(y) x.<!UNRESOLVED_REFERENCE!>length<!> }) PREV:[jf(L7|<v7>)]
|
||||
|
||||
@@ -70,7 +70,7 @@ callsAndInverts(x !is String) { y = 42 }
|
||||
y <v5>: Int NEW: r(y) -> <v5>
|
||||
println(y) <v6>: * NEW: call(println(y), println|<v5>) -> <v6>
|
||||
DEBUG_INFO_SMARTCAST <v7>: * NEW: magic[UNRESOLVED_CALL](DEBUG_INFO_SMARTCAST) -> <v7>
|
||||
!DEBUG_INFO_SMARTCAST <v8>: * NEW: call(!DEBUG_INFO_SMARTCAST, <ERROR FUNCTION>|<v7>) -> <v8>
|
||||
!DEBUG_INFO_SMARTCAST <v8>: * NEW: magic[UNRESOLVED_CALL](!DEBUG_INFO_SMARTCAST|<v7>) -> <v8>
|
||||
{ println(y) <!DEBUG_INFO_SMARTCAST!>x<!>.length } <v8>: * COPY
|
||||
y <v9>: Int NEW: r(y) -> <v9>
|
||||
println(y) <v10>: * NEW: call(println(y), println|<v9>) -> <v10>
|
||||
@@ -115,7 +115,7 @@ unknownBoolean && callsAndInverts(x !is String) { y = 42 }
|
||||
y <v8>: Int NEW: r(y) -> <v8>
|
||||
println(y) <v9>: * NEW: call(println(y), println|<v8>) -> <v9>
|
||||
DEBUG_INFO_SMARTCAST <v10>: * NEW: magic[UNRESOLVED_CALL](DEBUG_INFO_SMARTCAST) -> <v10>
|
||||
!DEBUG_INFO_SMARTCAST <v11>: * NEW: call(!DEBUG_INFO_SMARTCAST, <ERROR FUNCTION>|<v10>) -> <v11>
|
||||
!DEBUG_INFO_SMARTCAST <v11>: * NEW: magic[UNRESOLVED_CALL](!DEBUG_INFO_SMARTCAST|<v10>) -> <v11>
|
||||
{ println(y) <!DEBUG_INFO_SMARTCAST!>x<!>.length } <v11>: * COPY
|
||||
y <v12>: Int NEW: r(y) -> <v12>
|
||||
println(y) <v13>: * NEW: call(println(y), println|<v12>) -> <v13>
|
||||
|
||||
Reference in New Issue
Block a user