-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.InvalidOperationException: Unexpected value 'PropertyAccess' of type 'Microsoft.CodeAnalysis.VisualBasic.BoundKind' #68194
Labels
Comments
dotnet-issue-labeler
bot
added
Area-Compilers
untriaged
Issues and PRs which have not yet been triaged by a lead
labels
May 15, 2023
AlekseyTs
removed
the
untriaged
Issues and PRs which have not yet been triaged by a lead
label
May 15, 2023
It looks like support for ref-returns wasn't implemented for
Observed:
|
AlekseyTs
added a commit
to AlekseyTs/roslyn
that referenced
this issue
May 16, 2023
AlekseyTs
added a commit
that referenced
this issue
May 26, 2023
TymurGubayev
pushed a commit
to TymurGubayev/CodeConverter
that referenced
this issue
Dec 8, 2023
Roslyn 4.7.0/MsBuild 17.7 fixed an issue with `With ByRef` (dotnet/roslyn#68194)
Closed
1 task
1 task
GrahamTheCoder
added a commit
to TymurGubayev/CodeConverter
that referenced
this issue
Jul 20, 2024
Require roslyn , >=4.8.0 for ref return fix: dotnet/roslyn#68194 Require roslyn <= ~4.1.0 or >=4.11.0 for span classification fix: dotnet/roslyn#63921
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1818036
This issue has been moved from a ticket on Developer Community.
[severity:I'm unable to use this version]
I have a mixed C#/VB.NET solution. In C#, there is a class with ref-indexer (
ref T this[int i]
).In VB, return value of the indexer is used in a
With
statement (With mWeeks(WeekIndex)
)This results in exception in Roslyn:
Unexpected value 'PropertyAccess' of type 'Microsoft.CodeAnalysis.VisualBasic.BoundKind'
which breaks every active analyser etc.F.e. if the CS project is referenced from VB, but the class name is not fully qualified, pressing Alt-Enter on the
mWeeks
variable belowresults in "Feature 'Missing import discovery' is currently unavailable due to an internal error." with the stack trace below.
VB.NET class:
C# class:
Stacktrace:
Original Comments
Feedback Bot on 5/11/2023, 06:14 PM:
(private comment, text removed)
Feedback Bot on 5/15/2023, 11:09 AM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: