diff options
Diffstat (limited to 'syntax_tree.lua')
| -rw-r--r-- | syntax_tree.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/syntax_tree.lua b/syntax_tree.lua index 067018c..70a2daa 100644 --- a/syntax_tree.lua +++ b/syntax_tree.lua @@ -254,7 +254,10 @@ do [patt:as_var()] = self } end - if patt:get_stub() ~= self:get_stub() then + if patt.type ~= self.type then + return nil + end + if patt.type == "Action" and patt:get_stub() ~= self:get_stub() then return nil end if #self ~= #patt then |
