We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc3a286 commit c52cacaCopy full SHA for c52caca
1 file changed
Tests/CSharp/ExpressionTests/ExpressionTests.cs
@@ -13,7 +13,7 @@ await TestConversionVisualBasicToCSharpAsync(@"Class TestClass
13
Private Sub TestMethod()
14
Dim rslt = Not 1 = 2
15
Dim rslt2 = Not True
16
- Dim rslt3 = TypeOf True IsNot Boolean
+ Dim rslt3 = TypeOf New Object() IsNot Boolean
17
End Sub
18
End Class", @"
19
internal partial class TestClass
@@ -22,11 +22,9 @@ private void TestMethod()
22
{
23
bool rslt = !(1 == 2);
24
bool rslt2 = !true;
25
- bool rslt3 = !(true is bool);
+ bool rslt3 = !(new object() is bool);
26
}
27
-}
28
-1 source compilation errors:
29
-BC30021: 'TypeOf ... Is' requires its left operand to have a reference type, but this operand has the value type 'Boolean'.");
+}");
30
31
32
[Fact]
0 commit comments