Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XC] SetValue on nullable BP types #26387

Merged
merged 2 commits into from
Dec 5, 2024
Merged

[XC] SetValue on nullable BP types #26387

merged 2 commits into from
Dec 5, 2024

Conversation

StephaneDelcroix
Copy link
Contributor

Description of Change

SetValue on nullable BP types. generate like the compiler would

Issues Fixed

@StephaneDelcroix StephaneDelcroix requested a review from a team as a code owner December 5, 2024 10:46
@StephaneDelcroix StephaneDelcroix added this to the .NET 9 SR3 milestone Dec 5, 2024
jfversluis
jfversluis previously approved these changes Dec 5, 2024
jfversluis
jfversluis previously approved these changes Dec 5, 2024
{
MockCompiler.Compile(typeof(Maui26369), out var methodDef, out var hasLoggedErrors);
Assert.IsFalse(hasLoggedErrors);
Assert.False(ContainsBoxToNullable(methodDef));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this tests that the faulty IL isn't present anymore

}

var page = new Maui26369(useCompiledXaml);
Assert.That(page.NullableGridLength, Is.EqualTo(new GridLength(30)));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this tests that the IL is valid and behave as expected (this was failing before as well)

@PureWeen PureWeen merged commit 5f119d0 into main Dec 5, 2024
106 checks passed
@PureWeen PureWeen deleted the fix_26369 branch December 5, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Build failed in Release with exit code 139
4 participants