File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -299,20 +299,20 @@ public class OverloadResolutionPriorityAttributeTests
299299    public  void  Run ()
300300    {
301301        int [] arr  =  [1 , 2 , 3 ];
302-         // Prints "span " because resolution priority is higher 
302+         // Prints "Span " because resolution priority is higher 
303303Method (arr );
304304    }
305305
306306    [OverloadResolutionPriority (2 )]
307-     public   static  void  Method (ReadOnlySpan <int > list ) => 
307+     static  void  Method (ReadOnlySpan <int > list ) => 
308308        Console .WriteLine (" Span" 
309309
310310    [OverloadResolutionPriority (1 )]
311-     public   static  void  Method (int [] list ) => 
311+     static  void  Method (int [] list ) => 
312312        Console .WriteLine (" Array" 
313313}
314314``` 
315- <sup ><a  href =' /src/Tests/OverloadResolutionPriorityAttributeTests.cs#L5-L27  '  title =' Snippet source file ' >snippet source</a > | <a  href =' #snippet-OverloadResolutionPriority '  title =' Start of snippet ' >anchor</a ></sup >
315+ <sup ><a  href =' /src/Tests/OverloadResolutionPriorityAttributeTests.cs#L4-L26  '  title =' Snippet source file ' >snippet source</a > | <a  href =' #snippet-OverloadResolutionPriority '  title =' Start of snippet ' >anchor</a ></sup >
316316<!--  endSnippet --> 
317317
318318
Original file line number Diff line number Diff line change 11// ReSharper disable UnusedParameter.Global 
2- // ReSharper disable once MemberCanBePrivate.Global 
32#if FeatureMemory 
43
54#region OverloadResolutionPriority
@@ -16,11 +15,11 @@ public void Run()
1615    } 
1716
1817    [ OverloadResolutionPriority ( 2 ) ] 
19-     public   static void  Method ( ReadOnlySpan < int >  list )  => 
18+     static void  Method ( ReadOnlySpan < int >  list )  => 
2019        Console . WriteLine ( "Span" ) ; 
2120
2221    [ OverloadResolutionPriority ( 1 ) ] 
23-     public   static void  Method ( int [ ]  list )  => 
22+     static void  Method ( int [ ]  list )  => 
2423        Console . WriteLine ( "Array" ) ; 
2524} 
2625
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments