Fix evaluation of local functions for new-inference
Plus, additionally fix evaluation of generic local functions everywhere The problem was that in new-inference we create more substituted descriptors while old inference tries to preserve original ones. Later, backend fails to retrieve those descriptors as it uses originals. But, again, this worked only for simple functions, for generic functions debugger with new and old inference worked incorrectly #KT-31785 Fixed
This commit is contained in:
+1
-1
@@ -279,7 +279,7 @@ class CodeFragmentParameterAnalyzer(
|
||||
is SimpleFunctionDescriptor -> {
|
||||
val type = target.createFunctionType(target.builtIns, target.isSuspend) ?: return null
|
||||
parameters.getOrPut(target) {
|
||||
Smart(Dumb(Kind.LOCAL_FUNCTION, target.name.asString()), type, target)
|
||||
Smart(Dumb(Kind.LOCAL_FUNCTION, target.name.asString()), type, target.original)
|
||||
}
|
||||
}
|
||||
is ValueDescriptor -> {
|
||||
|
||||
Reference in New Issue
Block a user