tracker issue : CF-3488734

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

Assigning an expression to a struct key via struct-literal notation won't compile

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 01/24/2013

Components: Language

Versions: 9.0.1

Failure Type:

Found In Build/Fixed In Build: 9.0.1 /

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Win XP All

Vote Count: 0

Problem Description:
See the repro case.  The commented-out statement should compile fine, but it doesn't

Steps to Reproduce:
<cfscript>
	y = 1;
	z = x = y + y;

	o1 = {};
	o1.z= x = y + y;

	o2 ={
		//z = x = y + y
	};
	writeDump(variables);
</cfscript>


Actual Result:
Compile error

Expected Result:
If it to work


Any Workarounds:
See repro case

NB: this works fine on Railo.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3488734

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: Adam Cameron.
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments: