File tree Expand file tree Collapse file tree 4 files changed +31
-6
lines changed
Expand file tree Collapse file tree 4 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 11<Project >
22 <PropertyGroup >
33 <AllowUnsafeBlocks >true</AllowUnsafeBlocks >
4- <LangVersion >12 .0</LangVersion >
4+ <LangVersion >13 .0</LangVersion >
55 <Nullable >enable</Nullable >
66 <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
77
Original file line number Diff line number Diff line change 11{
22 "sdk" : {
3- "version" : " 8 .0.100" ,
3+ "version" : " 9 .0.100" ,
44 "rollForward" : " latestFeature" ,
55 "allowPrerelease" : false
66 }
7- }
7+ }
Original file line number Diff line number Diff line change @@ -162,11 +162,18 @@ public static ReadOnlySpan<int> TestRange(ReadOnlySpan<int> numbers)
162162[ CollectionBuilder ( typeof ( CollectionClass ) , nameof ( Create ) ) ]
163163internal class CollectionClass : IEnumerable < int >
164164{
165- public CollectionClass Test ( )
165+ public static CollectionClass Test ( )
166166 {
167+ Test2 ( 1 , 2 , 3 ) ;
168+
167169 return [ 1 , 2 , 3 ] ;
168170 }
169171
172+ public static void Test2 ( params CollectionClass collection )
173+ {
174+
175+ }
176+
170177 public static CollectionClass Create ( ReadOnlySpan < int > values )
171178 {
172179 return new ( ) ;
@@ -260,4 +267,22 @@ public void Start<TStateMachine>(ref TStateMachine stateMachine)
260267 }
261268}
262269
263- #endif
270+ #endif
271+
272+ internal static class OverloadResolutionPriorityTests
273+ {
274+ public static void Test ( )
275+ {
276+ TestOverload ( 1 ) ;
277+ }
278+
279+ [ Obsolete ( "Do not use" , error : true ) ]
280+ [ OverloadResolutionPriority ( - 1 ) ]
281+ public static void TestOverload ( int x )
282+ {
283+ }
284+
285+ public static void TestOverload ( int x , int y = 0 )
286+ {
287+ }
288+ }
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFrameworks >net472;net48;netstandard2.0;netstandard2.1;net6.0;net7.0;net8.0</TargetFrameworks >
4+ <TargetFrameworks >net472;net48;netstandard2.0;netstandard2.1;net6.0;net7.0;net8.0;net9.0 </TargetFrameworks >
55 <PolySharpIncludeRuntimeSupportedAttributes >true</PolySharpIncludeRuntimeSupportedAttributes >
66 </PropertyGroup >
77
You can’t perform that action at this time.
0 commit comments