List<Contact> c = [SELECT ID FROM Contact WHERE AccountId !='00190000016ozwL']; System.debug(c.size()); Database.SaveResult srList = Database.delete(c, false);
This is anonymous apex that I am trying to execute.
I am getting the following error while executing.
Illegal assignment from LIST<Database.DeleteResult> to LIST<Database.SaveResult>
Not sure why am I getting this error because "c" is a collection only.
Can someone let me know ?