working on signature generation for arrays

* more tests
* fix signature generation for Array<Array<Int>>
This commit is contained in:
Stepan Koltsov
2011-12-11 21:23:30 +04:00
parent 9511c31cd9
commit b5bb8ef5d8
9 changed files with 31 additions and 6 deletions
@@ -0,0 +1,7 @@
class ArrayOfIntArray {
{
int[][] a = new int[0][];
int[][] r = namespace.ohMy(a);
}
}
@@ -0,0 +1 @@
fun ohMy(p: Array<IntArray>) = p
@@ -0,0 +1,7 @@
class ArrayOfIntArray {
{
Integer[][] a = new Integer[0][];
Integer[][] r = namespace.ohMy(a, null);
}
}
@@ -0,0 +1,2 @@
// extra parameter is to make sure generic signature is generated
fun ohMy(p: Array<Array<Int>>, ignore: java.util.List<String>) = p
@@ -1,6 +1,6 @@
class IntArray {
{
int[] r = namespace.doNothing(new int[0]);
int[] r = namespace.doNothing(new int[0], null);
}
}
@@ -1 +1,2 @@
fun doNothing(array: IntArray) = array
// extra parameter is to make sure generic signature is not erased
fun doNothing(array: IntArray, ignore: java.util.List<String>) = array
@@ -0,0 +1,6 @@
class IntArray {
{
Integer[] r = namespace.doNothing(new Integer[0], null);
}
}
@@ -0,0 +1,2 @@
// extra parameter is to make sure generic signature is preserved
fun doNothing(array: Array<Int>, ignore: java.util.List<String>) = array