Skip to content
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

Referencing member of class passed as ref/out parameter throws exception #147

Closed
adrianoc opened this issue Jan 24, 2022 · 0 comments
Closed
Labels
🐛 bug Something isn't working bug_reporter

Comments

@adrianoc
Copy link
Owner

Error

System.ArgumentException: Literal type None not supported. (Parameter 'type')
at Cecilifier.Core.AST.SyntaxWalkerBase.LoadIndirectOpCodeFor(SpecialType type) in /home/adriano/Development/Adriano/study/DotNet/Cecilifier/Cecilifier.Core/AST/SyntaxWalkerBase.cs:line 489
at Cecilifier.Core.AST.SyntaxWalkerBase.HandlePotentialRefLoad(String ilVar, SyntaxNode expression, ITypeSymbol type) in /home/adriano/Development/Adriano/study/DotNet/Cecilifier/Cecilifier.Core/AST/SyntaxWalkerBase.cs:line 428
at Cecilifier.Core.AST.SyntaxWalkerBase.ProcessParameter(String ilVar, SimpleNameSyntax node, IParameterSymbol paramSymbol) in /home/adriano/Development/Adriano/study/DotNet/Cecilifier/Cecilifier.Core/AST/SyntaxWalkerBase.cs:line 333
...
at Cecilifier.Core.Cecilifier.Run(Stream content, CecilifierOptions options) in /home/adriano/Development/Adriano/study/DotNet/Cecilifier/Cecilifier.Core/Cecilifier.cs:line 51
at Cecilifier.Web.Startup.g__CecilifyCodeAsync|6_2(WebSocket webSocket) in /home/adriano/Development/Adriano/study/DotNet/Cecilifier/Cecilifier.Web/Startup.cs:line 137

Associated snippet:

using System;

class Foo
{
	int value;

	void Bar(ref Foo foo)  => foo.value = 42;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working bug_reporter
Projects
None yet
Development

No branches or pull requests

1 participant