bennyxqg / lua-alchemy

Automatically exported from code.google.com/p/lua-alchemy
0 stars 0 forks source link

Calls to class methods with inexact argument types are silently ignored #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Either cast arguments or crash

Example (pick a cleaner one for tests):

This works:

        local lua = as3.class.luaAlchemy.LuaAlchemy.new()
        local bytes = as3.class.flash.utils.ByteArray.new()
        bytes.writeMultiByte([[return 42]], "UTF-8")
        lua.supplyFile("test://foo.lua", bytes)

This does not (supplyFile is not even called):

        local lua = as3.class.luaAlchemy.LuaAlchemy.new()
        lua.supplyFile("test://foo.lua", [[return 42]])

Original issue reported on code.google.com by aglad...@gmail.com on 25 Feb 2012 at 3:39