yishayw commented on issue #126: Bad implicit casting to Function URL: https://github.com/apache/royale-compiler/issues/126#issuecomment-602536963 I haven't been able to come up with an isolated test case either. I don't know enough about the conditions for implicit casting to be efficient at this. FWIW, here's some more context from the original code ` private function createListData(fdgc:IFooterDataGridColumn, i:Number):void { if (fdgc.renderer is IDropInListItemRenderer) { // var text:String = (fdgc.labelFunction != null) ? fdgc.labelFunction(fdgc.dataColumn) : fdgc.label; var text:String = ""; if (fdgc.labelFunction != null) { text = fdgc.labelFunction(fdgc.dataColumn).toString(); // var labelFunction:Function = fdgc.labelFunction; }` IFooterDataGridColumn.as has these lines: ` function set labelFunction(value:Function):void function get labelFunction():Function function set dataColumn(value:Object):void function get dataColumn():Object ` and dataColumn is populated like this: ` <ns4:SummaryColumn operation='count' dataColumn='{LastName}'/>` where LastName is ` <mx:AdvancedDataGridColumn headerText="Last Name" dataField="LastName" width="140" textAlign="left" id="LastName"/>`
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
