We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b95a0 commit ce2b607Copy full SHA for ce2b607
script/vm/compiler.lua
@@ -1685,7 +1685,7 @@ local compilerSwitch = util.switch()
1685
if state.type == 'doc.return'
1686
or state.type == 'doc.param' then
1687
local func = state.bindSource
1688
- if func.type == 'function' then
+ if func and func.type == 'function' then
1689
local node = guide.getFunctionSelfNode(func)
1690
if node then
1691
vm.setNode(source, vm.compileNode(node))
0 commit comments