File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
ICSharpCode.Decompiler.Tests/TestCases/Pretty
ICSharpCode.Decompiler/TypeSystem Expand file tree Collapse file tree 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)
308308 {
309309 }
310310#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 )
312312 {
313313 }
314-
315314#if CS120
315+ public static Action < int , DateTime > Issue3469b ( )
316+ {
317+ return ( [ Optional ] [ DefaultParameterValue ( 0 ) ] int i , [ Optional ] DateTime d ) => {
318+ } ;
319+ }
316320 public static D LambdaWithOptionalParameter ( )
317321 {
318322 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)
629629 return false ;
630630
631631 if ( parameter . Owner == null )
632- return true ;
632+ return true ; // Shouldn't happen, but we need to check for it.
633633
634634 for ( int i = parameter . Owner . Parameters . Count - 1 ; i >= 0 ; i -- )
635635 {
You can’t perform that action at this time.
0 commit comments