Title:
Bug 83379:Cannot call methods in named arguments inside implicit structs or arrays
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Elliott Sprehn / Elliott Sprehn (Elliott Sprehn)
Created: 06/17/2010
Components: Language, CFSCRIPT
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 / 274653
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 4
Problem:
Cannot call methods in named arguments inside implicit structs or arrays.
ex.
x = new query();
test( x={y="#x.getName()#"} );
test( x=["#x.getName()#"] );
Method:
<cfscript>x = new query();test( x={y="#x.getName()#"} );test( x=["#x.getName()#"] );</cfscript>Results in: Variable X is undefined.
[vmannebo 6/18/10]:
<cfscript>
function test(required struct arg){
writedump(arg);
}
function foo(){
return "hi";
}
s.fn = foo;
//writedump(s.fn());
//myarg = {y = s.fn()};
//writedump(myarg);
test(arg={y=s.fn()});
</cfscript>
Result:
Variable X is undefined.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041673
External Customer Info:
External Company:
External Customer Name: Elliott Sprehn
External Customer Email: 202D59C844579997992016B7
External Test Config: 06/17/2010
Attachments:
Comments: