kotlin icon indicating copy to clipboard operation
kotlin copied to clipboard

Rename RingBuffer#add for the JVM to not shadow

Open kevinoconnor7 opened this issue 2 years ago • 2 comments

RingBuffer extends from the non-mutable AbstractList, but defines its own add fun which doesn't return any value. For the JVM there will implicitly be a fun add(T): boolean added to the supertype, which means RingBuffer#add is now shadowing it.

Thankfully this is all in a private class so we don't need to worry about a breaking API change.

^KT-55562

kevinoconnor7 avatar Jan 05 '23 15:01 kevinoconnor7