Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Shouldn't short? be compatible with short? #19

Open
derekgreer opened this issue Apr 24, 2018 · 0 comments
Open

Shouldn't short? be compatible with short? #19

derekgreer opened this issue Apr 24, 2018 · 0 comments

Comments

@derekgreer
Copy link

I'm running into an error which seems to stem from the decision made on this line of code:

if (st != source && tt == target) return false;

IsCompatibleWith(typeof(short?), typeof(short)) returns false. The intent of the method seems to be to see if a short is compatible with an int, etc., but doesn't account for whether short? is compatible with short.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant