test_registers_in_while.gravity 235 B

1234567891011121314
  1. #unittest {
  2. name: "Test protected registers in compound statement.";
  3. error: NONE;
  4. result: "[1,2,3,4]";
  5. };
  6. func main() {
  7. if (true) {
  8. System.nanotime();
  9. var nums = [1, 2, 3, 4];
  10. System.nanotime();
  11. return nums.String();
  12. }
  13. }