Skip to content

Commit c96f1ff

Browse files
committed
Decompiler: Fix missing typing of this param in methods with no params
1 parent 17f3caf commit c96f1ff

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Cpp2IL.Core/Analysis/LocalVariables.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,6 @@ private static bool PropagateFromCallParameters(MethodAnalysisContext method)
412412

413413
private static void PropagateFromParameters(MethodAnalysisContext method)
414414
{
415-
if (method.Parameters.Count == 0)
416-
return;
417-
418415
// 'this'
419416
if (!method.IsStatic)
420417
{
@@ -423,6 +420,9 @@ private static void PropagateFromParameters(MethodAnalysisContext method)
423420
thisLocal.Type = method.DeclaringType;
424421
}
425422

423+
if (method.Parameters.Count == 0)
424+
return;
425+
426426
// Normal params
427427
var paramIndex = 0;
428428
foreach (var local in method.ParameterLocals)

0 commit comments

Comments
 (0)