[SR-13338] Cannot use empty array syntax for options for PropertyListSerialization when running as script #55778
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Environment
Mac OS X: 10.15.4 (19E266)
Swift:
Additional Detail from JIRA
md5: b1bace599a2789d91ac4155f5e684668
duplicates:
Issue Description:
If you try and run the following code as a script you will get an error:
However, if you change the `
options
` to `PropertyListSerialization.ReadOptions(rawValue: 0)
` it will work as expected.If you build the code and run the binary, this does not happen.
The error is:
There are no crash logs or entries in system.log at the same time.
The text was updated successfully, but these errors were encountered: