moonsharp-devs / moonsharp

An interpreter for the Lua language, written entirely in C# for the .NET, Mono, Xamarin and Unity3D platforms, including handy remote debugger facilities.

Home Page:http://www.moonsharp.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docs say heuristic should resolve float/int overloads properly; actually does not

oxysoft opened this issue · comments

float is treated as a downcast, same exact score as int.
See for yourselves

if (desiredType == typeof(double) || desiredType == typeof(decimal))