Skip to content

Fix: correct __Usual boxing#1982

Merged
RobertvanderHulst merged 1 commit into
devfrom
fix/vfp-property-usual-boxing
Jun 9, 2026
Merged

Fix: correct __Usual boxing#1982
RobertvanderHulst merged 1 commit into
devfrom
fix/vfp-property-usual-boxing

Conversation

@Irwin1985

Copy link
Copy Markdown
Contributor

When setting an instance variable on a VFP DEFINE CLASS object ej: p.firstName = "John" and ArgumentException was thrown at runtime.

> System.String cannot be converted to XSharp.__Usual

Fix

Appy OOPHelpers.ValueConvert(uValue, targetType) before each SetValue Call in PropertyContainer.prg.

@RobertvanderHulst RobertvanderHulst merged commit e6a22c7 into dev Jun 9, 2026
1 check passed
@RobertvanderHulst RobertvanderHulst deleted the fix/vfp-property-usual-boxing branch June 10, 2026 07:37
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