diff --git a/ICSharpCode.Decompiler/IL/Instructions/ILFunction.cs b/ICSharpCode.Decompiler/IL/Instructions/ILFunction.cs index 0086b3f2d..2f4791b6b 100644 --- a/ICSharpCode.Decompiler/IL/Instructions/ILFunction.cs +++ b/ICSharpCode.Decompiler/IL/Instructions/ILFunction.cs @@ -214,13 +214,11 @@ namespace ICSharpCode.Decompiler.IL Debug.Assert(Method != null); break; case ILFunctionKind.Delegate: - Debug.Assert(Parent != null && !(Parent is Block)); Debug.Assert(DelegateType != null); Debug.Assert(DeclarationScope == null); Debug.Assert(!(DelegateType?.FullName == "System.Linq.Expressions.Expression" && DelegateType.TypeParameterCount == 1)); break; case ILFunctionKind.ExpressionTree: - Debug.Assert(Parent != null && !(Parent is Block)); Debug.Assert(DelegateType != null); Debug.Assert(DeclarationScope == null); Debug.Assert(DelegateType?.FullName == "System.Linq.Expressions.Expression" && DelegateType.TypeParameterCount == 1);