Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Fixes around generic defintion EETypes - #1490

Merged
MichalStrehovsky merged 2 commits into
dotnet:masterfrom
MichalStrehovsky:definitionEEType
Jul 8, 2016
Merged

MichalStrehovsky merged 2 commits into
dotnet:masterfrom
MichalStrehovsky:definitionEEType

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

See individual commit descriptions.

Match up what we emit with what EEType.cs expects.
Existing logic would say `true` for generic definition EETypes with
arity 2.

Not that anyone would care, since this is not used anywhere.
@jkotas

jkotas commented Jul 8, 2016

Copy link
Copy Markdown
Member

Not that anyone would care, since this is not used anywhere.

There are couple of places where we do IsString check by comparing with EETypePtr.EETypePtrOf<string>(). It may look better to change those places to call the property, and change this property to just compare with EETypePtrOf() to avoid tricky condition.

@jkotas

jkotas commented Jul 8, 2016

Copy link
Copy Markdown
Member

👍

@MichalStrehovsky

Copy link
Copy Markdown
Member Author

It may look better to change those places to call the property

Hm, I looked at them and while one place would benefit, the other place would end up worse off because it also compares to IntPtr and UIntPtr. We would lose consistency and it would be harder to read.

@MichalStrehovsky
MichalStrehovsky merged commit 716a09b into dotnet:master Jul 8, 2016
@MichalStrehovsky
MichalStrehovsky deleted the definitionEEType branch July 8, 2016 16:47
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