Status/Resolution/Reason: Closed/Won't Fix/TooManyChanges
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 01/01/2013
Components: Language
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final /
Priority/Frequency: Minor / Few users will encounter
Locale/System: English / Windows 7 64-bit
Vote Count: 0
Problem Description:
See the steps to reproduce. Note that I have a typo in thefunction definition: "require" instead of "required". On CF9 this correctly gives a compile error; on CF10 it gives a runtime error of "The STRING argument passed to the f function is not of type require"
Steps to Reproduce:
<cfscript>
public string function f(require string s){
return "#reverse(s)#";
}
writeOutput(f("Zachary"));
</cfscript>
Actual Result:
See above
Expected Result:
See above
Any Workarounds:
For me to not write code with typos in it ;-). But, hey, it should give the proper compile error.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3434652
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: