Skip to content

Commit

Permalink
fixes #2071
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Nov 5, 2024
1 parent cbba43c commit d954af7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/org/rascalmpl/semantics/dynamic/Expression.java
Original file line number Diff line number Diff line change
Expand Up @@ -1833,10 +1833,12 @@ public IMatchingResult buildMatcher(IEvaluatorContext eval, boolean bindTypePara
}
return new TypedMultiVariablePattern(eval, this, type, arg.getName(), bindTypeParameters);
}

if(arg.hasQualifiedName()){
return new MultiVariablePattern(eval, this, arg.getQualifiedName());
}
throw new ImplementationError(null);

throw new UnsupportedOperation("splice operator outside of list or set", this);
}

@Override
Expand Down Expand Up @@ -1872,7 +1874,8 @@ public Type typeOf(Environment env, IEvaluator<Result<IValue>> eval, boolean ins
if(arg.hasQualifiedName()){
return arg.getQualifiedName().typeOf(env, eval, instantiateTypeParameters);
}
throw new ImplementationError(null);

return arg.typeOf(env, eval, instantiateTypeParameters);
}

}
Expand Down

0 comments on commit d954af7

Please sign in to comment.