You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on main branch, adding a test to SyntaxGeneratorTests.cs:
[Fact]publicvoidTest(){varcomp= CSharpCompilation.Create(null,new[]{ SyntaxFactory.ParseSyntaxTree("""
public class C
{
public static C operator checked ++(C x) => x;
}
""")});varoperatorSymbol=(IMethodSymbol)comp.GetTypeByMetadataName("C").GetMembers(WellKnownMemberNames.CheckedIncrementOperatorName).Single();VerifySyntax<OperatorDeclarationSyntax>(Generator.OperatorDeclaration(operatorSymbol),"");}
crashes with
System.ArgumentException : Unknown operator kind.
Stack Trace:
SyntaxGenerator.GetOperatorKind(IMethodSymbol method) line 256
SyntaxGenerator.OperatorDeclaration(IMethodSymbol method, IEnumerable`1 statements) line 215
SyntaxGeneratorTests.Test() line 3791
The text was updated successfully, but these errors were encountered:
on
main
branch, adding a test toSyntaxGeneratorTests.cs
:crashes with
The text was updated successfully, but these errors were encountered: