DerivcoIpswich / dsharp

A fork of the Script# project.
http://www.derivco.co.uk
Other
20 stars 13 forks source link

object initialised with braces whose constructor takes another object as parameter also initialised with braces NOT SUPPORTED #273

Open charlisi opened 4 years ago

charlisi commented 4 years ago

Here's an example where adding the initialiser for MessageResult will cause compiler to fail:

    new MessageResponse(new MessageResult() { Errors = null }, 0)
                {
                    Request = new MessageRequest(
                    null,
                    null,
                        new BlowUpRequest()
                        {
                            BlowUpRequestId = REQUEST_ID,
                            BlowUpId = BLOW_UP_ID
                        })
                };