Skip to content

Commit c52caca

Browse files
Fix test input compilation
1 parent bc3a286 commit c52caca

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Tests/CSharp/ExpressionTests/ExpressionTests.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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
1818
End Class", @"
1919
internal 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]

0 commit comments

Comments
 (0)