Skip to content

Commit

Permalink
fixed something #253
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlogic committed Nov 28, 2024
1 parent 18ef46a commit f3b7c86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/arb/expressions/Expression.java
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ protected Expression<D, C, F> evaluateOptionalIndependentVariableSpecification()
var variable = new VariableNode<>(this,
new VariableReference<>(inputVariableName,
null,
domainType),
coDomainType),
position,
false);

Expand Down
1 change: 1 addition & 0 deletions src/main/java/arb/expressions/VariableReference.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public VariableReference(String name, Node<D, R, F> index, Class<?> type)
this(name,
index);
this.type = type;
assert !type.equals(Object.class) : "type shan't be Object";
}

public String name;
Expand Down
5 changes: 1 addition & 4 deletions src/main/java/arb/expressions/nodes/VariableNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,7 @@ else if (ascendentInput)
{
returnType = reference.type();
}
if (returnType.equals(Object.class))
{
returnType = expression.coDomainType;
}

assert returnType != null : "returnType is null for " + this;
assert returnType != Object.class : "TODO: tried to return "
+ returnType
Expand Down

0 comments on commit f3b7c86

Please sign in to comment.