Given the following code snippets, Line
#2 shows inspection error "Cannot Resolve Symbol". It only happens to the Project__c object and my assumption is that it is because there is a managed package that shares the same name minus the namespace. If I return the query to a variable rather than as a return statement the code is not flagged.
return [SELECT Id FROM Account]; return [SELECT Id FROM Project__c]; return [SELECT Id FROM TaskRay__Project__c]; List<Project__c> results = [SELECT Id FROM Project__c];
This has no affect on saving or running the code it just shows up as an error in the inspection results.