Cleanup Array.plus usages after bootstrap.

This commit is contained in:
Ilya Gorbunov
2015-07-19 14:06:04 +03:00
parent 41aed73ebd
commit 21ee2c1cfd
2 changed files with 2 additions and 3 deletions
@@ -172,7 +172,7 @@ public class PropertyReferenceCodegen(
if (!target.isVar()) return
val setterParameters = (getterParameters + arrayOf(OBJECT_TYPE)).toList().toTypedArray()
val setterParameters = (getterParameters + arrayOf(OBJECT_TYPE))
generateAccessor(method("set", Type.VOID_TYPE, *setterParameters)) { value ->
// Hard-coded 1 or 2 is safe here because there's only java/lang/Object in the signature, no double/long parameters
value.store(StackValue.local(if (receiverType != null) 2 else 1, OBJECT_TYPE), this)