OSDN Git Service

C# 8.0 のnull許容参照型を有効化
[opentween/open-tween.git] / OpenTween.Tests / TestUtils.cs
index f0eb41a..aef4bcd 100644 (file)
@@ -57,7 +57,7 @@ namespace OpenTween
         public static async Task NotRaisesAsync<T>(Action<EventHandler<T>> attach, Action<EventHandler<T>> detach, Func<Task> testCode)
             where T : EventArgs
         {
-            T raisedEvent = null;
+            T? raisedEvent = null;
 
             void handler(object s, T e)
                 => raisedEvent = e;