aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/core/metaprogramming.nom2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/metaprogramming.nom b/lib/core/metaprogramming.nom
index 55cab2a..8fe09ca 100644
--- a/lib/core/metaprogramming.nom
+++ b/lib/core/metaprogramming.nom
@@ -410,7 +410,7 @@ external:
lua> ("
local class = getmetatable(\$)
::check_parent::
- if not class or not class.__type then return 'a '..lua_type:capitalized() == \$type end
+ if not class or not class.__type then return 'a '..\(lua type of $):capitalized() == \$type end
if class.__type == \$type then return true end
local class_mt = getmetatable(class)
if class_mt.__index and class_mt.__index ~= class then