You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errordecompiling @060001A8 Unity.Injection.InjectionFactory.AddPolicies
in assembly "C:\Temp\err120.dll"---> ICSharpCode.ILSpy.AssertionFailedException:atICSharpCode.ILSpy.ILSpyTraceListener.Fail(Stringmessage,StringdetailMessage) in offset 380
at ICSharpCode.ILSpy.ILSpyTraceListener.Fail(Stringmessage)inoffset9atSystem.Diagnostics.TraceInternal.Fail(Stringmessage)in offset 55
at System.Diagnostics.Debug.Assert(Booleancondition)in offset 6
at ICSharpCode.Decompiler.IL.StLoc.CheckInvariant(ILPhasephase)in StLoc.cs:line 44
at ICSharpCode.Decompiler.IL.ILInstruction.CheckInvariant(ILPhasephase)in ILInstruction.cs:line 95
at ICSharpCode.Decompiler.IL.Block.CheckInvariant(ILPhasephase)in Block.cs:line 108
at ICSharpCode.Decompiler.IL.Transforms.StatementTransform.Run(Blockblock,BlockTransformContextcontext)in StatementTransform.cs:line 138
at ICSharpCode.Decompiler.IL.Block.RunTransforms(IEnumerable`1transforms,BlockTransformContextcontext)in Block.cs:line 318
at ICSharpCode.Decompiler.IL.Transforms.BlockILTransform.VisitBlock(ControlFlowNodecfgNode,BlockTransformContextcontext)in BlockTransform.cs:line 118
at ICSharpCode.Decompiler.IL.Transforms.BlockILTransform.Run(ILFunctionfunction,ILTransformContextcontext)in BlockTransform.cs:line 90
at ICSharpCode.Decompiler.IL.ILFunction.RunTransforms(IEnumerable`1transforms,ILTransformContextcontext)in ILFunction.cs:line 405
at ICSharpCode.Decompiler.IL.Transforms.DelegateConstruction.TransformDelegateConstruction(ILInstructionvalue,IMethodtargetMethod,ILInstructiontarget,ITypedelegateType)in DelegateConstruction.cs:line 207
at ICSharpCode.Decompiler.IL.Transforms.DelegateConstruction.ICSharpCode.Decompiler.IL.Transforms.IILTransform.Run(ILFunctionfunction,ILTransformContextcontext)in DelegateConstruction.cs:line 56
at ICSharpCode.Decompiler.IL.ILFunction.RunTransforms(IEnumerable`1transforms,ILTransformContextcontext)in ILFunction.cs:line 405
at ICSharpCode.Decompiler.IL.Transforms.LocalFunctionDecompiler.ReadLocalFunctionDefinition(ILFunctionrootFunction,IMethodtargetMethod,Int32skipCount)in LocalFunctionDecompiler.cs:line 479
at ICSharpCode.Decompiler.IL.Transforms.LocalFunctionDecompiler.<FindUseSites>g__HandleUseSite|12_0(IMethodtargetMethod,ILInstructioninst,<>c__DisplayClass12_0&)in LocalFunctionDecompiler.cs:line 433
at ICSharpCode.Decompiler.IL.Transforms.LocalFunctionDecompiler.FindUseSites(ILFunctionfunction,ILTransformContextcontext, Dictionary`2localFunctions)in LocalFunctionDecompiler.cs:line 410
at ICSharpCode.Decompiler.IL.Transforms.LocalFunctionDecompiler.Run(ILFunctionfunction,ILTransformContextcontext)in LocalFunctionDecompiler.cs:line 95
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileBody(IMethodmethod,EntityDeclarationentityDecl,DecompileRundecompileRun,ITypeResolveContextdecompilationContext)in CSharpDecompiler.cs:line 1551-- continuing with outer exception (ICSharpCode.Decompiler.DecompilerException)--
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileBody(IMethodmethod,EntityDeclarationentityDecl,DecompileRundecompileRun,ITypeResolveContextdecompilationContext)in CSharpDecompiler.cs:line 1588
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompile(IMethodmethod,DecompileRundecompileRun,ITypeResolveContextdecompilationContext)in CSharpDecompiler.cs:line 1465
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompile(ITypeDefinitiontypeDef,DecompileRundecompileRun,ITypeResolveContextdecompilationContext)in CSharpDecompiler.cs:line 1318
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompileTypes(IEnumerable`1types,DecompileRundecompileRun,ITypeResolveContextdecompilationContext,SyntaxTreesyntaxTree)in CSharpDecompiler.cs:line 574
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileTypes(IEnumerable`1types)in CSharpDecompiler.cs:line 894
at ICSharpCode.Decompiler.CSharp.ProjectDecompiler.WholeProjectDecompiler.<>c__DisplayClass45_0.<WriteCodeFilesInProject>b__2(IGrouping`2file)in WholeProjectDecompiler.cs:line 239
at System.Threading.Tasks.Parallel.<>c__DisplayClass42_0`2.<PartitionerForEachWorker>b__1()in offset 713
at System.Threading.Tasks.Task.InnerInvokeWithArg(TaskchildTask)in offset 6
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object<p0>)in offset 134
Details
ILSpy version 7.2.0.6792-preview4
.NET version 4.8.3928.0 err120.zip
The text was updated successfully, but these errors were encountered:
Looks like the NamedArgumentTransform uses the wrong type for the this argument. It defaults to the declaring type of the invoked method, however in this case this causes conflicts with T&.
InferType doesn't seem appropriate to me in that context.
And at best it would make the assertion less likely, without actually fixing it in all cases.
siegfriedpammer
changed the title
Assert at ICSharpCode.Decompiler.IL.StLoc.CheckInvariant
Assertion: Named arguments do not use correct type for thisVarTypeDec 26, 2021
Input code
Save code
assembly is not obfuscated
Erroneous output
Details
ILSpy version 7.2.0.6792-preview4
.NET version 4.8.3928.0
err120.zip
The text was updated successfully, but these errors were encountered: