File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Tests/CSharp/ExpressionTests Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ await TestConversionVisualBasicToCSharpAsync(@"Class TestClass
1313 Private Sub TestMethod()
1414 Dim rslt = Not 1 = 2
1515 Dim rslt2 = Not True
16- Dim rslt3 = TypeOf True IsNot Boolean
16+ Dim rslt3 = TypeOf New Object() IsNot Boolean
1717 End Sub
1818End Class" , @"
1919internal partial class TestClass
@@ -22,11 +22,9 @@ private void TestMethod()
2222 {
2323 bool rslt = !(1 == 2);
2424 bool rslt2 = !true;
25- bool rslt3 = !(true is bool);
25+ bool rslt3 = !(new object() is bool);
2626 }
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'." ) ;
27+ }" ) ;
3028 }
3129
3230 [ Fact ]
You can’t perform that action at this time.
0 commit comments