Skip to content

Commit 4e87b72

Browse files
committed
Fix error in core on CompositeFunction execution
1 parent 0f50371 commit 4e87b72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/laytonsmith/core/functions/CompositeFunction.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.laytonsmith.core.Prefs;
99
import com.laytonsmith.core.Script;
1010
import com.laytonsmith.core.compiler.analysis.ParamDeclaration;
11+
import com.laytonsmith.core.compiler.analysis.ReturnableDeclaration;
1112
import com.laytonsmith.core.compiler.analysis.Scope;
1213
import com.laytonsmith.core.compiler.analysis.StaticAnalysis;
1314
import com.laytonsmith.core.constructs.CArray;
@@ -56,6 +57,7 @@ public final Mixed exec(Target t, Environment env, Mixed... args) throws ConfigR
5657
rootScope.addDeclaration(new ParamDeclaration("@arguments", CArray.TYPE, null,
5758
new NodeModifiers(),
5859
Target.UNKNOWN));
60+
rootScope.addDeclaration(new ReturnableDeclaration(null, new NodeModifiers(), Target.UNKNOWN));
5961
tree = MethodScriptCompiler.compile(MethodScriptCompiler.lex(script, env, debugFile, true),
6062
env, env.getEnvClasses(), new StaticAnalysis(rootScope, true))
6163
// the root of the tree is null, so go ahead and pull it up

0 commit comments

Comments
 (0)