Deal with ENew and EConst(CIdent)). Updated tests & doc.
This commit is contained in:
@@ -46,7 +46,6 @@ class Exprs extends Base {
|
||||
test(macro @yield while (_) foo, macro while (_) foo, { leaveLoops: true });
|
||||
test(macro @yield [while (_) foo], macro [while (_) foo]);
|
||||
}
|
||||
|
||||
function testSubstitute() {
|
||||
exprEq(
|
||||
macro foo.call(arg1, arg2),
|
||||
@@ -67,5 +66,18 @@ class Exprs extends Base {
|
||||
'C' => macro : Array<Float>
|
||||
])
|
||||
);
|
||||
exprEq(
|
||||
macro {
|
||||
new Foo<Bar>(1, 2, 3);
|
||||
Bar.foo();
|
||||
},
|
||||
(macro {
|
||||
new X(1, 2, 3);
|
||||
Y.foo();
|
||||
}).substParams([
|
||||
'X' => macro : Foo<Bar>,
|
||||
'Y' => macro : Bar
|
||||
])
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user