From 8dd9ec14f08111cfe6eb2029517c7d1528dbfe13 Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Thu, 19 Nov 2020 23:50:32 +0100 Subject: [PATCH 1/2] Enable nullable: System.Management.Automation.Interpreter.IBoxableInstruction --- .../engine/interpreter/LocalAccess.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/System.Management.Automation/engine/interpreter/LocalAccess.cs b/src/System.Management.Automation/engine/interpreter/LocalAccess.cs index 7b0711b1930..2e426ad0d04 100644 --- a/src/System.Management.Automation/engine/interpreter/LocalAccess.cs +++ b/src/System.Management.Automation/engine/interpreter/LocalAccess.cs @@ -23,11 +23,16 @@ namespace System.Management.Automation.Interpreter { + +#nullable enable + internal interface IBoxableInstruction { - Instruction BoxIfIndexMatches(int index); + Instruction? BoxIfIndexMatches(int index); } +#nullable restore + internal abstract class LocalAccessInstruction : Instruction { internal readonly int _index; From 567de8e18844b8bd050c9b2804b93c203bb15c56 Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Fri, 20 Nov 2020 18:52:46 +0100 Subject: [PATCH 2/2] Removing whitespace before/after nullable pragma --- .../engine/interpreter/LocalAccess.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/System.Management.Automation/engine/interpreter/LocalAccess.cs b/src/System.Management.Automation/engine/interpreter/LocalAccess.cs index 2e426ad0d04..30596866c0c 100644 --- a/src/System.Management.Automation/engine/interpreter/LocalAccess.cs +++ b/src/System.Management.Automation/engine/interpreter/LocalAccess.cs @@ -25,12 +25,10 @@ namespace System.Management.Automation.Interpreter { #nullable enable - internal interface IBoxableInstruction { Instruction? BoxIfIndexMatches(int index); } - #nullable restore internal abstract class LocalAccessInstruction : Instruction