<Question about nested classes syntax> I was wonde...
# forum
r
Question about nested classes syntax I was wondering about a decision made in the language (and I am certainly not advocating a change - just curious) class Outside { class InsideClass { } companion object { val insideVariable = 0 } } To create a new instance we call val inside = Outside.InsideClass() which seems to have the same scope inside Outside as val i = Outside.insideVariable. It seems to me that it might have been more consistent to have the nested class as class Outside { companion...