Skip to content

Commit

Permalink
fix #1986
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Jun 11, 2019
1 parent c0fd693 commit 180f1e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions NETGenerator/NETGenerator.cs
Expand Up @@ -5433,8 +5433,9 @@ public override void visit(SemanticTree.ILocalVariableReferenceNode value)
{
if (lb.LocalType.IsGenericParameter)
{
il.Emit(OpCodes.Ldloc, lb);
il.Emit(OpCodes.Box, lb.LocalType);
//il.Emit(OpCodes.Ldloc, lb);
//il.Emit(OpCodes.Box, lb.LocalType);
il.Emit(OpCodes.Ldloca, lb); // #1986
}
else
if (lb.LocalType.IsValueType)
Expand Down

0 comments on commit 180f1e5

Please sign in to comment.