title: Error "unexpected token List"
body: <p>I am getting error "unexpected token List " while compiling the following code</p>
  
  <pre><code>trigger Lead_Casecloseafter on Lead (after update) {
      // Collect ODST leads
      id vRecordTypeId = [select Id from RecordType where name='ODST_Leads'];
      set&lt;id&gt; vSetCaseId= new set&lt;id&gt;();
  
      for (Lead vLead:trigger.new)
      {
          if (vLead.RecordTypeId == vRecordTypeId &amp;&amp; vLead.IsConverted == true)
              vSetCaseId.add (vLead.ODST_Case__c);
          }
      }
  
      // Looking up associated Case
      List &lt;Case&gt; vLstcase = new List ([select id,name,Case_Number__c,Status from            ODST_Case__c where ID IN:vSetCaseId]);
  
      for (Case vCase:vLstcase)
      {   
          vCase.Status == 'Closed';
  
          if(!vLstcase.isempty())
              update vLstcase; 
      }
  }
  </code></pre>