File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ private void TestMethod()
3131 public async Task DateLiteralsAsync ( )
3232 {
3333 await TestConversionVisualBasicToCSharpAsync ( @"Class TestClass
34- Private Sub TestMethod(ByVal date As Date = #1/1/1900#)
34+ Private Sub TestMethod(Optional ByVal pDate As Date = #1/1/1900#)
3535 Dim rslt = #1/1/1900#
3636 Dim rslt2 = #8/13/2002 12:14 PM#
3737 End Sub
@@ -41,15 +41,12 @@ End Sub
4141
4242internal partial class TestClass
4343{
44- private void TestMethod([Optional, DateTimeConstant(599266080000000000/* #1/1/1900# */)] DateTime date )
44+ private void TestMethod([Optional, DateTimeConstant(599266080000000000/* #1/1/1900# */)] DateTime pDate )
4545 {
4646 var rslt = DateTime.Parse(""1900-01-01"");
4747 var rslt2 = DateTime.Parse(""2002-08-13 12:14:00"");
4848 }
49- }
50- 2 source compilation errors:
51- BC30183: Keyword is not valid as an identifier.
52- BC32024: Default values cannot be supplied for parameters that are not declared 'Optional'." ) ;
49+ }" ) ;
5350 }
5451
5552 [ Fact ]
Original file line number Diff line number Diff line change @@ -1439,6 +1439,7 @@ private void TestMethod()
14391439}
144014401 target compilation errors:
14411441CS0149: Method name expected" ) ;
1442+ //BUG: Requires new Action wrapper
14421443 }
14431444
14441445 [ Fact ]
@@ -1623,6 +1624,7 @@ public static string TimeAgo(string x)
16231624}
162416251 target compilation errors:
16251626CS0825: The contextual keyword 'var' may only appear within a local variable declaration or in script code" ) ;
1627+ //BUG: Correct textual output, but requires var pattern syntax construct not available before CodeAnalysis 3
16261628 }
16271629
16281630 [ Fact ]
You can’t perform that action at this time.
0 commit comments