VB LINQ inspection marks errors on query that compiles
Completed
I have the following VB code making use of LINQ formatted like an SQL request:
Dim fruits = {"Apple", "Pear", "Peach", "Strawberry", "Blueberry", "Raspberry"}
Dim berryCount =
(From f As String
In fruits
Where f.Contains("berry")).Count()
This code compiles and works on runtime, but ReSharper throws a ton of errors in the editor:

When I simply remove the line return between From f As String
and In fruits
, like so:

ReSharper stops complaining.
I feel like this is a bug in the language analysis, but I could be wrong.
Please sign in to leave a comment.
Hello Eric,
Thank you for contacting us.
I discussed this behavior with our development team and opened a corresponding issue - https://youtrack.jetbrains.com/issue/RSRP-494767/VB-LINQ-inspection-marks-errors-on-query-that-compiles
Please follow the issue to get the latest updates. Thank you!
Excellent! I will follow it right away
Eric,
Glad to hear! You are always welcome.