pavel
09/27/2018, 11:38 PMJT
09/28/2018, 1:19 AMprivate var collapsedMaxLines: Int = 0
everything works as expected, the value gets assigned to 5 in the method called by the super constructor and stays 5. However if I initialized the var to any non-zero value, it seems to get re-assigned to that value after the constructor method sets it to 5. In order to set the value in the constructor method - the declaration and initialization of the variable has to have already taken place - right?orangy
09/28/2018, 5:31 AMInt
is a primitive type here, so it has zero as default value – no initialization necessary.