From 5da06978b1b10213cb39285977b4a364313e012c Mon Sep 17 00:00:00 2001 From: Damir Ainullin Date: Thu, 19 Mar 2020 03:54:39 +0000 Subject: [PATCH] Set correct priority for ?: operator (#12075) --- .../engine/runtime/Binding/Binders.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Management.Automation/engine/runtime/Binding/Binders.cs b/src/System.Management.Automation/engine/runtime/Binding/Binders.cs index 3aaf877e88..cbccd082a7 100644 --- a/src/System.Management.Automation/engine/runtime/Binding/Binders.cs +++ b/src/System.Management.Automation/engine/runtime/Binding/Binders.cs @@ -1178,7 +1178,7 @@ namespace System.Management.Automation.Language public bool Equals(PSInvokeDynamicMemberBinderKeyType x, PSInvokeDynamicMemberBinderKeyType y) { return x.Item1.Equals(y.Item1) && - x.Item2 == null ? y.Item2 == null : x.Item2.Equals(y.Item2) && + ((x.Item2 == null) ? y.Item2 == null : x.Item2.Equals(y.Item2)) && x.Item3 == y.Item3 && x.Item4 == y.Item4 && x.Item5 == y.Item5;