Skip to content

Fix FastCompile of int.GetType() - #577

Merged
dadhi merged 1 commit into
dadhi:masterfrom
exyi:fix-call-int.GetType
Nov 3, 2026
Merged

dadhi merged 1 commit into
dadhi:masterfrom
exyi:fix-call-int.GetType

Conversation

@exyi

@exyi exyi commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

GetType is not virtual, but it still need to be called with the Constrained prefix, since it needs boxing.

The previous check can be simplified to DeclaringType != exprType, I couldn't find any example where direct call could be used for method defined on a base type of struct

GetType is not virtual, but it still need to be called with Constrained
prefix, since it needs boxing.

The previous check can be simplified to DeclaringType != exprType, I
couldn't find any example where direct call could be used for method on
other declaring type.
@dadhi

dadhi commented Nov 3, 2026

Copy link
Copy Markdown
Owner

thanks! i will check a bit later

@dadhi
dadhi merged commit f6d3957 into dadhi:master Nov 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants