Ok so here's in an interesting scenario. It's Andr...
# announcements
k
Ok so here's in an interesting scenario. It's Android related, but not Android specific. The base class
View
has a method
setOnScrollChangeListener
which taks a SAM with the signature
void onScrollChange(View v, int scrollX, int scrollY, int oldScrollX, int oldScrollY)
. Then there is the subclass
NestedScrollView
which also has a method
setOnScrollChangeListener
(that doesn't override the other one) that takes a SAM with the signature
void onScrollChange(NestedScrollView v, int scrollX, int scrollY, int oldScrollX, int oldScrollY)
. Now, if you write
nestedScrollView.setOnScrollChangeListener { v, sx, sy, ox, oy -> }
, which method do you expect it to be resolved to?