Failed to introduce macro with ellipsis from inside other macro
Created by: andreypopp
I see the following error
SyntaxError: [patterns] The pattern variable is not bound for the template
12: rule { { $stmt ... } } => {
when trying to declare macro
macro outer {
case { $name } => {
return #{
macro ok { // this works!
rule { $id } => { $id(true) }
}
macro fail { // this doesn't work!
rule { { $stmt ... } } => {
function x() {
$stmt ...
}
}
}
}
}
}
outer