blitz-research / monkey

Blitz Research Monkey Source
225 stars 59 forks source link

Fixed a bug with 'ambiguity' when using overloads which conflict due to ... #57

Closed ImmutableOctet closed 10 years ago

ImmutableOctet commented 10 years ago

...auto-boxing / conversion. Forum thread: http://www.monkey-x.com/Community/posts.php?topic=8708

Not the best of work-arounds, but it's done the job for every situation I've tested. This change basically just makes 'Trans' choose overloads which explicitly use objects over converting via 'ToBlah'. That being said, I can confirm that 'ToBlah' still works without an issue, however with this, it doesn't take priority (It'll assume you want to use the "most optimal" overload). That being said, explicit use of 'ToBlah' works as you'd expect.