nested expansion bug with new or arrays
Created by: byteit101
macro str {
case {_ ($x:ident) } => {
var y = unwrapSyntax(#{$x});
return [makeValue(y, #{$x})];
}
}
macro expand {
rule { $templName $name }
=> { new foo(str($templName), [str($name)]) }
}
expand worksFine doesNotExpand
should result in new foo('worksFine', ['doesNotExpand'])]);
but instead results in new foo('worksFine', [str$49187(doesNotExpand)]);
. Removing the new or the [] "fixes" it in that it then expands correctly.