introduce StackValue.store(); use it to implement write access to fields and arrays
This commit is contained in:
@@ -313,6 +313,7 @@ public class NamespaceGenTest extends CodegenTestCase {
|
||||
|
||||
public void testArrayWrite() throws Exception {
|
||||
loadText("fun foo(c: Array<String>) { c[0] = \"jet\"; }");
|
||||
System.out.println(generateToText());
|
||||
final Method main = generateFunction();
|
||||
String[] array = new String[] { null };
|
||||
main.invoke(null, new Object[] { array });
|
||||
|
||||
Reference in New Issue
Block a user