aboutsummaryrefslogtreecommitdiff
path: root/lib/core/metaprogramming.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-03-09 15:54:37 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-03-09 15:54:37 -0800
commitc7483d92b79cc07c603b5b412694dbb69b0eaee7 (patch)
treed9ed7c80ed962a94dbcff82ffe8f43b867bb7e60 /lib/core/metaprogramming.nom
parent35835997bb470da78a4eee10de3421faba5d5a37 (diff)
Tidying up
Diffstat (limited to 'lib/core/metaprogramming.nom')
-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