You need to sign in to do that
Don't have an account?

Illegal assignment from List<Account>
when i used below code in execute anaonymous window, facing error like List<Account> Acc=[SELECT Id,name From Account];
facing error like :
Illegal assignment from List<Account> to List<Account>
Please someone help on this
facing error like :
Illegal assignment from List<Account> to List<Account>
Please someone help on this
Same query working for me without any error.
In your organization somewhere you have created a class named "Account". Thats why the compiler is not able to understand that it is standard Object Account or the class created by you. Please rename your class, it will work.
If this helps, Please mark it as best answer.
Thanks!!
Refer-
https://developer.salesforce.com/forums/?id=906F0000000g1y6IAA