tracker issue : CF-4203301

select a category, or use search below
(searches all categories and all time range)

Struct and Array Literals in parenthesis cannot be returned.

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Jamie Purchase / ()

Created: 08/28/2018

Components: Core Runtime, Parser/Compiler

Versions: 2016,10.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: ACF 10 / CF2018hf7

Priority/Frequency: Normal / All users will encounter

Locale/System: ALL / Linux Ubuntu 14.04

Vote Count: 4

Problem: Any expression(s) should be able to be wrapped in parenthesis (to either aid in order of operands or not) however simply trying to compile "return ([]);" or "return ({});" throws a syntax error.

Steps to Reproduce:

Actual Result: Invalid CFML construct found on line 9 at column 17. on line 9

Expected Result: Successful compilation.



System is Linux Mint but it wasn't an option... not that it matters.
Comment by Jamie P.
29628 | August 28, 2018 04:01:54 PM GMT
Vote by Aaron N.
29642 | August 30, 2018 06:09:40 AM GMT
This is fixed in CF2018. don't see the issue with HF7.
Comment by Piyush K.
33270 | March 06, 2020 11:19:51 AM GMT