- changed title to Error when parsing sObject list assignment.
Error when parsing sObject list assignment.
Issue #892
resolved
This statement causes a parsing error in the apex editor:
List<pymt__PaymentX__c> payment = (inboundPayments.size() == 1) ? [SELECT Id,(SELECT Id FROM Donations__r) FROM pymt__PaymentX__c WHERE Id=:inboundPayments[0].Payment__c] : new List<pymt__PaymentX__c>();
The error that it displays is : Illegal assignment from Object to List<pymt__PaymentX__c>
The code does compile though.
Comments (4)
-
reporter -
repo owner - changed component to Code Inspections and Intentions
Thanks for reporting. I'll let you know if I have any trouble reproducing. If not, I'll include a fix in the next build.
-
repo owner Fix submitted for inclusion in the next build.
-
repo owner - changed status to resolved
Delivered in 2.0.1.2 and 1.8.2.1.
- Log in to comment