Error when parsing sObject list assignment.

Issue #892 resolved
George Mandala created an issue

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)

  1. Log in to comment