Note that current behaviour is made similar to the case with properties initializers/accessors, which means that more complex cases are not covered yet (see KT-20801) #KT-20802 fixed.