Type annotations on C-style arrays are recognized now even better

This commit is contained in:
Roman Shevchenko
2013-04-05 22:28:42 +02:00
parent 41d93bf6e8
commit 52c17b2657
4 changed files with 36 additions and 33 deletions

View File

@@ -107,7 +107,11 @@ class Outer {
new Boolean @TA [2] <error descr="Annotations are not allowed here">@TA</error>;
}
int @TA [] mixedArrays() @TA [] <error descr="Annotations are not allowed here">@TA</error> { return new int[0][0]; }
int @TA [] mixedArrays @TA [] <error descr="Annotations are not allowed here">@TA</error> = new int[0][0];
int @TA [] mixedArrays(int @TA [] p @TA [] <error descr="Annotations are not allowed here">@TA</error>) @TA [] <error descr="Annotations are not allowed here">@TA</error> {
int @TA [] a @TA [] <error descr="Annotations are not allowed here">@TA</error> = (p != null ? p : mixedArrays);
return a;
}
@TA Outer() { }