mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
VisitDynamicUnaryOperatorInstruction handled every dynamic unary operator except ExpressionType.OnesComplement, so ~x on a dynamic operand fell through to the unsupported-opcode error expression and produced uncompilable output (an incomplete cast that fails to parse). Map it to the bitwise-complement operator, like the sibling unary cases. Assisted-by: Copilot:claude-opus-4.8:GitHub Copilot CLIpull/3834/head
2 changed files with 3 additions and 0 deletions
Loading…
Reference in new issue