Why Do I get this error in the below code?
Error
expecting right square bracket, found 'in'
Code
trigger ProposalTriggerTest on Proposal__Proposal__c (after update) {
try{
list < Proposal__Proposal__c > updateList = new list < Proposal__Proposal__c > ();
list < Proposal__Proposal__c > currentProposalList = [ Select id , (Select LineType__c, NetPrice__c From ProposalSummaryGroups__r where LineType__c = 'Grand Total' ), Quoting_Country__r.Rounding_Method__c From Proposal__Proposal__c in :trigger.new ];
system.debug('####Check currentSummaryGroups : '+currentProposalList);
for (Proposal__Proposal__c proposal : currentProposalList) {
system.debug('####Check - Before Net : '+proposal.ProposalSummaryGroups__r[0].NetPrice__c);
proposal.ProposalSummaryGroups__r[0].NetPrice__c = proposal.ProposalSummaryGroups__r[0].NetPrice__c +100;
system.debug('####Check - After Net : '+proposal.ProposalSummaryGroups__r[0].NetPrice__c);
updateList.add(current);
}
if(updateList.size()>0) update updateList;
}catch(Exception e){}
}