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

The compiler sees several Load() overloads, so it postpones the resolution to runtime using the callsite (call_Load?0). #1136

Open
FibonacciFox opened this issue Apr 3, 2024 · 0 comments

Comments

@FibonacciFox
Copy link

FibonacciFox commented Apr 3, 2024

          The compiler sees several `Load()` overloads, so it postpones the resolution to runtime using the callsite (`call_Load?0`).

The fix would be to improve the compiler so it resolves the Load(object) overload in compile time - I'm not sure, why it's not resolving it already, it should.

Originally posted by @jakubmisek in #1118 (comment)

Hello, I have a suggestion on how to solve this problem. For example, use named parameters to help the compiler. This way you can tell the compiler which overloaded method to use.

image

Improvement would look like this:

image

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

No branches or pull requests

1 participant