This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dev:crosscompiler:type_checking [2019/07/12 13:58] – ursgraf | dev:crosscompiler:type_checking [2019/07/16 08:16] – ursgraf | ||
---|---|---|---|
Line 14: | Line 14: | ||
==== Special Case ' | ==== Special Case ' | ||
- | When you check against //Object//, the result must be '' | + | When you check against //Object//, the result must be '' |
A check against an array of //Object// leads to two cases: | A check against an array of //Object// leads to two cases: | ||
- The reference points to an array of regular classes: the check returns '' | - The reference points to an array of regular classes: the check returns '' | ||
Line 77: | Line 77: | ||
The following code | The following code | ||
<code java> | <code java> | ||
- | Object[][][] | + | Object[][][] |
A[] x = new AA[5]; | A[] x = new AA[5]; | ||
- | | + | |
- | | + | |
short[][] y = new short[2][3]; | short[][] y = new short[2][3]; | ||
- | | + | |
- | | + | |
</ | </ | ||
leads to\\ | leads to\\ | ||
[{{ .: | [{{ .: | ||
This example can be found in the test cases (// | This example can be found in the test cases (// |