Commit cab191ca authored by Jeff Smits's avatar Jeff Smits

Fixed bug in building explode patterns

parent 8de600eb
......@@ -413,14 +413,13 @@ impl BuildTerm {
Explode(ref cons, ref children) => {
use aterm::Term::*;
use interpreter::b;
use interpreter::{b, from_cons_nil_list};
let cons =;
let children =;
let children = children
let children =
.map_err(|_| Error::UnknownBehaviour(
"Non-list in build of explode pattern (#) second argument"))?;
match b(&cons).as_inner().term {
Application(ref c, ref r) if r.is_empty() => {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment