It seems that it isn’t possible to use the return value of protected functions that return
this in subclasses. When trying to chain method calls, you’ll get an error on the second call stating that the method is protected and can’t be called here. Can anyone explain me why it behaves in this way?
Simple example explaining the situation: play.kotlinlang.org