Skip to content

Conversation

@jkotas
Copy link
Member

@jkotas jkotas commented Apr 19, 2022

No description provided.

@jkotas jkotas requested a review from danmoseley April 19, 2022 03:41
@ghost ghost assigned jkotas Apr 19, 2022
@ghost
Copy link

ghost commented Apr 19, 2022

Tagging subscribers to this area: @dotnet/area-system-reflection
See info in area-owners.md if you want to be subscribed.

Issue Details

null

Author: jkotas
Assignees: jkotas
Labels:

area-System.Reflection

Milestone: -

@jkotas
Copy link
Member Author

jkotas commented Apr 19, 2022

#68151 (comment)

// The ILC toolchain fails the build if it encounters such a type.
// This api is a nop unless the array element type is a value type with an explicit nullary constructor.
// Such a type could not be expressed in C# up until recently.
// The AOT toolchain fails the build if it encounters such a type.
Copy link
Member

Choose a reason for hiding this comment

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

ProjectN does fail the build if it sees a parameterless ctor on a valuetype, but NativeAOT doesn't we just silently don't do the right thing.

@jkotas
Copy link
Member Author

jkotas commented Apr 19, 2022

The failures are:
#67761
#67349
#67821

@jkotas jkotas merged commit 400d171 into dotnet:main Apr 19, 2022
@jkotas jkotas deleted the projectn branch April 19, 2022 14:51
directhex pushed a commit to directhex/runtime that referenced this pull request Apr 21, 2022
@ghost ghost locked as resolved and limited conversation to collaborators May 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants