No error reported for initializing the same property twice on object creation
entity Person { name : String } var p := Person { name := "1", name := "2" }
The above example is allowed, and
Submitted by Max on 22 June 2022 at 11:32name
takes the value2
. I would expect an error or at least a warning.
Log in to post comments