postpone "transparent semantics for spread operator"
until Java-related design issues are resolved (java.utils.Arrays#asList).
This commit is contained in:
Dmitry Petrov
2015-10-06 13:48:59 +03:00
parent fbf2424838
commit 4a3f53b322
4 changed files with 3 additions and 47 deletions
@@ -91,8 +91,7 @@ public class VarArgTest extends CodegenTestCase {
Method main = generateFunction("test");
String[] args = {"mama", "papa"};
String[] result = (String []) main.invoke(null, new Object[] {args});
assertTrue(args != result);
assertTrue(Arrays.equals(args, result));
assertTrue(args == result);
}
public void testArrayAsVararg2() throws InvocationTargetException, IllegalAccessException {