File tree 2 files changed +7
-3
lines changed
ICSharpCode.Decompiler/TypeSystem
ICSharpCode.Decompiler.Tests/TestCases/Pretty
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -308,11 +308,15 @@ public static void Issue2920p(in int x = 3)
308
308
{
309
309
}
310
310
#endif
311
- public static void Issue3469 ( [ Optional ] [ DefaultParameterValue ( 0 ) ] int i , [ Optional ] DateTime d )
311
+ public static void Issue3469a ( [ Optional ] [ DefaultParameterValue ( 0 ) ] int i , [ Optional ] DateTime d )
312
312
{
313
313
}
314
-
315
314
#if CS120
315
+ public static Action < int , DateTime > Issue3469b ( )
316
+ {
317
+ return ( [ Optional ] [ DefaultParameterValue ( 0 ) ] int i , [ Optional ] DateTime d ) => {
318
+ } ;
319
+ }
316
320
public static D LambdaWithOptionalParameter ( )
317
321
{
318
322
return ( int x = 10 ) => x ;
Original file line number Diff line number Diff line change @@ -629,7 +629,7 @@ public static bool IsDefaultValueAssignmentAllowed(this IParameter parameter)
629
629
return false ;
630
630
631
631
if ( parameter . Owner == null )
632
- return true ;
632
+ return true ; // Shouldn't happen, but we need to check for it.
633
633
634
634
for ( int i = parameter . Owner . Parameters . Count - 1 ; i >= 0 ; i -- )
635
635
{
You can’t perform that action at this time.
0 commit comments