``` class Col(val tab : Tab) { } class Tab { fun C...
# announcements
s
Copy code
class 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
?