Getting an `Unresolved reference: +=` for an int c...
# k2-adopters
e
Getting an
Unresolved reference: +=
for an int coming from an array (­čžÁ )
Copy code
private fun consumeNestedScroll(dy: Int, consumed: IntArray?) {
    if(consumed != null) {
      consumed[1] += abs(dy)
    }
  }
i
Can you attach a self-contained code?
e
What do you mean by self-contained code?
i
Oh, sorry, my bad, reproduced the problem.
­čĹŹ 1