Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Bradley Wood / Bradley Wood (Bradley Wood)
Created: 10/01/2016
Components: Language
Versions: 2016,11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final / 2018,0,0,308513
Priority/Frequency: Major / All users will encounter
Locale/System: ALL / Platforms All
Vote Count: 2
Problem Description:
Passing a struct literal as the second operand to the Elvis operator returns the string "{" instead of an empty struct. I've tested this on CF11 update 10.
Steps to Reproduce:
x = y ?: {};
writeDump(x);
Actual Result:
The string "{"
Expected Result:
An empty struct
Any Workarounds:
x = y ?: structNew();
writeDump(x);
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4194596
Reason: BugVerified
External Customer Info:
External Company:
External Customer Name: Bradley Wood
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: