Skip to content

Commit d626799

Browse files
committed
Bump <LangVersion/> to 14
1 parent e295cca commit d626799

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ csharp_space_after_cast = true
1515
csharp_indent_switch_labels = true
1616
csharp_indent_case_contents = true
1717
csharp_indent_labels = one_less_than_current
18+
dotnet_style_require_accessibility_modifiers = for_non_interface_members
1819
trim_trailing_whitespace = true
1920

2021
# Style rules

Common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<Features>strict</Features>
1919
<IsTargetingNetFramework>$(TargetFramework.StartsWith("net4"))</IsTargetingNetFramework>
2020
<GenerateDocumentationFile>true</GenerateDocumentationFile> <!-- it would be nice to rename these to *.api_reference.xml or something, but it seems https://github.com/dotnet/standard/issues/614 was never fixed -->
21-
<LangVersion>12.0</LangVersion>
21+
<LangVersion>14.0</LangVersion>
2222
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
2323
<NoWarn>$(NoWarn);CS1591;SA0001</NoWarn>
2424
<Nullable>enable</Nullable>

src/BizHawk.Emulation.Cores/Consoles/PC Engine/QuickCollections.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public QuickQueue(int capacity)
5353
public void Enqueue(T item)
5454
{
5555
if (size >= buffer.Length)
56-
throw new Exception($"{nameof(QuickQueue<T>)} capacity breached!");
56+
throw new Exception($"{nameof(QuickQueue<>)} capacity breached!");
5757

5858
buffer[tail] = item;
5959
tail = (tail + 1) % buffer.Length;
@@ -78,7 +78,7 @@ public T[] ToArray(int elemSize)
7878
public T Dequeue()
7979
{
8080
if (size == 0)
81-
throw new Exception($"{nameof(QuickQueue<T>)} is empty!");
81+
throw new Exception($"{nameof(QuickQueue<>)} is empty!");
8282

8383
T item = buffer[head];
8484
head = (head + 1) % buffer.Length;

0 commit comments

Comments
 (0)