compress AST_Arrow properly (#2170)

This commit is contained in:
Alex Lam S.L
2017-06-28 01:06:30 +08:00
committed by GitHub
parent ad139aa34d
commit 4d5aeeddfb
3 changed files with 303 additions and 21 deletions

View File

@@ -49,8 +49,8 @@ compress_new_function_with_destruct_arrows: {
new Function("[[aa]], [{bb}]", 'return aa;');
}
expect: {
Function("aa, [bb]", 'return aa;');
Function("aa, {bb}", 'return aa;');
Function("[[aa]], [{bb}]", 'return aa;');
Function("N", "[a]", 'return N');
Function("b", "{bb:N}", 'return b');
Function("[[b]]", "[{bb:N}]", 'return b');
}
}