src/test/01-Basic/128.ck
raw| 1 | // this checks non-empty arrays of references and full instances |
| 2 | // june 2023 |
| 3 | |
| 4 | // 2x2 array of SinOsc refs |
| 5 | SinOsc @ foo[2][2]; |
| 6 | |
| 7 | // 2x2 array of SinOsc instances |
| 8 | SinOsc bar[2][2]; |
| 9 | |
| 10 | // test |
| 11 | if( foo[1][1] == null && bar[1][1] != null ) |
| 12 | <<< "success" >>>; |
| 13 | else |
| 14 | <<< foo[1][1], bar[1][1] >>>; |