Status/Resolution/Reason: To Test/Withdrawn/Fixed
Reporter/Name(from Bugbase): Alexandre P. / ()
Created: 11/14/2019
Components: Language, Functions
Versions: 2018,14.0
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: ColdFusion 2018 Update 5 /
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Win 2016
Vote Count: 1
Problem Description:
ColdFusion typed array validation doesn't throw when a function doesn't return a value. Note that the non-array variant of the same below example (returntype="numeric") exhibits the proper behavior.
Steps to Reproduce:
<cfset nums = getNums()>
<cffunction name="getNums" returntype="numeric[]">
</cffunction>
Actual Result: No error is thrown.
Expected Result: 'null' is not of type numeric[]
Any Workarounds: None
Attachments:
Comments: