I am new to Apex and Eclipse. I am getting the following error when trying to compile: Save error: Incompatible element type LIST for collection of Id
Set<ID> terrOut = new Set<ID>(); terrOut.add([Select t.Id From Territory__c t where t.Name = 'WI-Brown']);
Territory__c is a custom object. When I execute the SOQL in Eclipse Developer page, the code returns the value correctly.
Any help would be greatly appreciated.