Add new dynamic array syntax.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
public main()
|
||||
{
|
||||
int[] x = new float[3];
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
(3) : error 164: allocated array type 'float' doesn't match original type 'int'
|
||||
@@ -0,0 +1,10 @@
|
||||
native printnum(num);
|
||||
|
||||
public main()
|
||||
{
|
||||
new x = 4;
|
||||
new y = 8;
|
||||
int[][] v = new int[4][8];
|
||||
v[2][3] = 9;
|
||||
printnum(v[2][3]);
|
||||
}
|
||||
Reference in New Issue
Block a user