Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
NLua
Commits
a31a3d5a
Commit
a31a3d5a
authored
Oct 02, 2014
by
Vinicius Jarina
Browse files
Merge pull request #105 from Mervill/master
Type search finds classes not declared in a namespace.
parents
d420b17e
dc976e88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Core/NLua/Lua.cs
View file @
a31a3d5a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment