Commit a31a3d5a authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Merge pull request #105 from Mervill/master

Type search finds classes not declared in a namespace.
parents d420b17e dc976e88
......@@ -171,6 +171,7 @@ local mt = {
local class = rawget(package, classname)
if class == nil then
class = import_type(package.packageName .. ""."" .. classname)
if class == nil then class = import_type(classname) end
package[classname] = class -- keep what we found around, so it will be shared
end
return class
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment