Skip to content

Commit

Permalink
fix: incorrect unity 2021 compile define
Browse files Browse the repository at this point in the history
You get a fix, I get a fix, everyone gets a fix! It's a Fixception.
Sigh.
  • Loading branch information
SoftwareGuy committed May 31, 2022
1 parent 249d397 commit 6d9c566
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Assets/Tests/Runtime/Serialization/NetworkWriterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
using NSubstitute;
using NUnit.Framework;
using UnityEngine;
#if UNITY_2021
// The following resolves a CS0104 error because apparently there's the same class
// in System.Collections.Generic with the same name, and Unity complains about it.
// First sighted on MacOS with Unity 2021.3.3f1. May affect all 2021 versions...?
// First sighted on 2021.3.3f1. May affect all 2021 versions...? Also thanks to
// Hertzole on Discord for pointing out "UNITY_2021" might not exist in 2022.
#if UNITY_2021_1_OR_NEWER
using CollectionExtensions = Mirage.Serialization.CollectionExtensions;
#endif

Expand Down

0 comments on commit 6d9c566

Please sign in to comment.