Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Tom King / ()
Created: 05/14/2018
Components: Language, Script CFC
Versions: 2018
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: Beta / 2018,0,0,309470
Priority/Frequency: Normal /
Locale/System: / Windows 10
Vote Count: 0
Problem Description:
2018 syntax doesn't differ between "property()" called outside of a function, and property() to be called WITHIN a function in a CFC
Example:
https://github.com/cfwheels/cfwheels/blob/master/wheels/model/associations.cfm#L157
Steps to Reproduce:
component {
// This is fine:
property name='someService' inject='ServerService';
function myFunction(){
// This function called property, might be in variables scope outside of CFC
property(title="foo");
}
}
Attachments:
Comments: