Commit 68eea4ff authored by Marc Gravell's avatar Marc Gravell

fix #1190

parent b961089e
...@@ -2416,7 +2416,7 @@ private static List<IMemberMap> GetValueTupleMembers(Type type, string[] names) ...@@ -2416,7 +2416,7 @@ private static List<IMemberMap> GetValueTupleMembers(Type type, string[] names)
il.Emit(OpCodes.Ldarg_1); // stack is now [untyped-param] il.Emit(OpCodes.Ldarg_1); // stack is now [untyped-param]
if (isStruct) if (isStruct)
{ {
il.DeclareLocal(type.MakePointerType()); il.DeclareLocal(type.MakeByRefType()); // note: ref-local
il.Emit(OpCodes.Unbox, type); // stack is now [typed-param] il.Emit(OpCodes.Unbox, type); // stack is now [typed-param]
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment