提交 c66e4a7d 编写于 作者: G Gen Lu

Merge pull request #9310 from genlu/fix9174crash

[AskMode] Replace exception with value `Invalid` when an unexpected value is en…
......@@ -770,7 +770,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Case BinaryOperatorKind.GreaterThan
Return BinaryOperationKind.OperatorMethodGreaterThan
Case Else
Throw ExceptionUtilities.UnexpectedValue(OperatorKind And BinaryOperatorKind.OpMask)
Return BinaryOperationKind.Invalid
End Select
End Get
End Property
......
......@@ -1658,15 +1658,15 @@ Module Module1
r = x / y
r = x \ y
r = x Mod y
' r = x ^ y TODO: Bug https://github.com/dotnet/roslyn/issues/9174
r = x ^ y ' TODO: Bug https://github.com/dotnet/roslyn/issues/9174
r = x = y
r = x <> y
r = x < y
r = x > y
r = x <= y
r = x >= y
' r = x Like y TODO: Bug https://github.com/dotnet/roslyn/issues/9174
' r = x & y TODO: Bug https://github.com/dotnet/roslyn/issues/9174
r = x Like y ' TODO: Bug https://github.com/dotnet/roslyn/issues/9174
r = x & y ' TODO: Bug https://github.com/dotnet/roslyn/issues/9174
r = x And y
r = x Or y
r = x Xor y
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册