neolithos / neolua

A Lua implementation for the Dynamic Language Runtime (DLR).
https://neolua.codeplex.com/
Apache License 2.0
466 stars 76 forks source link

str.format call Exception #183

Open ilyfairy opened 8 months ago

ilyfairy commented 8 months ago

NeoLua Version: 1.3.14

Exception: System.InvalidCastException: 'Unable to cast object of type 'System.String' to type 'Neo.IronLua.LuaLibraryString'.'

Example to reproduce:

str = 'abc'
print(str.format) -- ok, output: System.String format(System.String, System.Object[])
print(str.format("%s", "abc")) -- exception