Incompatibility - Multiple arguments with the same name in UDF doesn't throw an error

Description

Lucee didn't throw an error UDF has multiple arguments with the same name. seems ACF throws an error like cannot specify the same name for multiple arguments.

If a UDF has multiple arguments with the same name, Lucee should throw an error

<cfscript> private function testfunc(numeric a, numeric a) { return a+a; } writedump(testfunc(1,2)); </cfscript>

Activity

Show:

Pothys - MitrahSoft 2 August 2022 at 13:09

I added a testcase to this ticket

Pull Request: https://github.com/lucee/Lucee/pull/1745

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Priority

Created 2 August 2022 at 11:30
Updated 8 June 2023 at 20:03

Flag notifications