Error: Compile Error: unexpected token: 'List' at line 6 column 1
trigger AbortInsert on Adder__c (before insert)
{
System.debug('****************************************');
List& amp;lt;Adder__c> adders = Trigger.new;
for (Adder__c adder: adders)
{
if(AdderExt.fakeSave == true)
{
// AdderExt controls an editor that should only work on one row at a time
System.assertEquals(adders.size(), 1);
// Provide the evaluation results to the line item controller
AdderExt.evaluationResults = adder;
System.debug('adder='+adder);
// Abort the save
adder.addError('Throwing error to prevent DML for this formula only evaluation');
}
}
}