Override nullable fields by giving values

Imagine I have
BaseClass { open var myVar: String? = null }
ChildClass { override var myVar = "SomeString"}
That will give me error.

Var-property type is String, which is not a type of overridden …

Isn’t it would be nicer to be able to override nullable properties with values in child classes? They could continue behave as nullable we will not be forced to write String? when we do override.

That would be somewhat confusing, if I see something declared as override var myVar = "SomeString" I’d think that’s a String not some other type.

Actually good point. Thank you