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.
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.
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 https://github.com/peachpiecompiler/peachpie/issues/1118#issuecomment-1694814574
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.
Improvement would look like this: