In 15.8.7
Using the following code makes Visual Studio suggest I use the name item for class Item, even though that name is already defined.
Note that var is NOT an Item class.
This is obviously incorrect as there will be two different varibles with the same item name.
foreach (var item in returnedShipment.items)
{
shipment.itemReferences.Add(item.item_reference);
Item <name item is suggested here>
}

This issue has been moved from https://developercommunity.visualstudio.com/content/problem/361110/varible-name-suggested-same-as-foreach-varible-nam.html
VSTS ticketId: 708453
These are the original issue comments:
(no comments)
These are the original issue solutions:
(no solutions)
In 15.8.7
Using the following code makes Visual Studio suggest I use the name item for class Item, even though that name is already defined.
Note that var is NOT an Item class.
This is obviously incorrect as there will be two different varibles with the same item name.
This issue has been moved from https://developercommunity.visualstudio.com/content/problem/361110/varible-name-suggested-same-as-foreach-varible-nam.html
VSTS ticketId: 708453
These are the original issue comments:
(no comments)
These are the original issue solutions:
(no solutions)