Fixed hot swap when closure captures variables

Stabilized order of synthetic constructor parameters in anonymous class.

 #KT-5440 fixed
This commit is contained in:
Evgeny Gerashchenko
2014-10-15 16:34:19 +04:00
parent afa59a616c
commit db45f4a062
2 changed files with 79 additions and 1 deletions
@@ -121,7 +121,7 @@ public final class MutableClosure implements CalculatedClosure {
public void captureVariable(EnclosedValueDescriptor value) {
if (captureVariables == null) {
captureVariables = new HashMap<DeclarationDescriptor, EnclosedValueDescriptor>();
captureVariables = new LinkedHashMap<DeclarationDescriptor, EnclosedValueDescriptor>();
}
captureVariables.put(value.getDescriptor(), value);
}