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 17ead0f commit c7e597fCopy full SHA for c7e597f
src/main/java/org/devore/module/CoreModule.java
@@ -222,8 +222,11 @@ public void init(Env dEnv) {
222
env.set(ast.getFirst().op.toString(), result);
223
} else {
224
List<String> parameters = new ArrayList<>();
225
- for (AstNode parameter : ast.getFirst().children)
+ for (AstNode parameter : ast.getFirst().children) {
226
+ if (!(parameter.op instanceof DOp))
227
+ throw new DevoreCastException(parameter.op.type(), "op");
228
parameters.add(parameter.op.toString());
229
+ }
230
List<AstNode> asts = new ArrayList<>();
231
for (int i = 1; i < ast.size(); ++i)
232
asts.add(ast.get(i).copy());
0 commit comments