records, with expression, required property
I'm hitting a strange behaviour and not sure if it's intended.
I have the following record definition:
Then I use it in code like this:
Why is
If so, shouldn't I get a warning/error that I have an uninitialised required property in
I have the following record definition:
Then I use it in code like this:
Why is
config2.DataSource null? Is this intended behaviour of combining required and with?If so, shouldn't I get a warning/error that I have an uninitialised required property in
config2?