spand
07/01/2016, 8:34 AMclass Col(val tab : Tab) { }
class Tab { fun Col.default(defaultValue: Int): Col = this }
fun Col.defaultZero() : Col = with(this.tab){ return default(0); }
Within the with
block this
is of type Tab
but why is it still possible to call default(0)
defined as an extension on Col
?