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
Sigil.SigilVerificationException: CallVirtual expected a System.Object; found MyStruct*
at Sigil.Emit`1.UpdateStackAndInstrStream(Nullable`1 instr, TransitionWrapper transitions, Boolean firstParamIsThis)
at Sigil.Emit`1.UpdateState(OpCode instr, MethodInfo method, IEnumerable`1 parameterTypes, TransitionWrapper transitions, Boolean firstParamIsThis, Type[] arglist)
at Sigil.Emit`1.CallVirtual(MethodInfo method, Type constrained, Type[] arglist)
at Program.Main(String[] args) in Program.cs:line 18
The text was updated successfully, but these errors were encountered:
Found this while debugging kevin-montrose/Jil#257. (Jil emits virtual calls to
IEnumerable<T>.GetEnumerator
.)Looking at the above method in dotPeek, I see a
constrained
callvirt
on the address of theMyStruct
argument:Here's (what I think is) the equivalent Sigil:
This fails with a
SigilVerificationException
.The text was updated successfully, but these errors were encountered: