Skip to content

Commit

Permalink
Fixed #645
Browse files Browse the repository at this point in the history
  • Loading branch information
liiir1985 committed Jan 28, 2022
1 parent b1cef8d commit 3a4c9fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ILRuntime/Runtime/Intepreter/RegisterVM/JITCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ int InitializeFunctionParam(ref OpCodes.OpCodeR op, object token, out bool hasRe
pCnt = m.ParameterCount;
if (!m.IsStatic && op.Code != OpCodeREnum.Newobj)
pCnt++;
hasReturn = m.ReturnType != appdomain.VoidType;
hasReturn = m.ReturnType != appdomain.VoidType && !(m.IsConstructor && op.Code == OpCodeREnum.Call);
if (m is ILMethod)
{
isILMethod = !m.IsDelegateInvoke;
Expand Down
1 change: 1 addition & 0 deletions TestCases/TestValueTypeBinding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ public static void UnitTest_10048()
for (int i = 0; i < 3; i++)
{
cls.Vector2 = cls2.Vector2 = new TestVector3(3, 4, i);
Console.WriteLine(cls.Vector2);
}

if (cls.Vector2.Z != 2)
Expand Down

0 comments on commit 3a4c9fd

Please sign in to comment.