Constructor parameters without a var
or val
keyword are only visible
to init
blocks and property initializers. So, in this case, sillyCount
is not visible to the something()
function.
You can learn more about this in:
Tags: