Title:
Bug 75551:cannot define an empty stuct in short-hand syntax as argument default
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): Devin Holloway / Devin Holloway (Devin Holloway)
Created: 02/17/2009
Components: Language, CFSCRIPT
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 0
Problem:
cannot define an empty stuct in short-hand syntax as argument default
Method:
remote array function fill(string entity, struct filterCriteria = {})
{
// this errors because of the empty filterCriteria stuct syntax
}
remote array function fill(string entity, struct filterCriteria = StructNew())
{
// this works
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037588
External Customer Info:
External Company:
External Customer Name: Devin Holloway
External Customer Email: 5E060FD6422E831A992015D5
External Test Config: 02/17/2009
Attachments:
Comments: