Skip to content

Commit 42a9bc6

Browse files
committed
Bump <LangVersion/> to 14
1 parent 42f2dda commit 42a9bc6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<Features>strict</Features>
1818
<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 -->
1919
<IsTargetingNetFramework>$(TargetFramework.StartsWith("net4"))</IsTargetingNetFramework> <!-- $(TargetFrameworkIdentifier) is unset here -->
20-
<LangVersion>12.0</LangVersion>
20+
<LangVersion>14.0</LangVersion>
2121
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
2222
<NoWarn>$(NoWarn);CS1591</NoWarn> <!-- CS1591 wants doc comments on every type/member, which is a recipe for useless generated or blank comments -->
2323
<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)