summaryrefslogtreecommitdiff
path: root/tests/typ/code/break-continue.typ
blob: 2b38cf77c0b35aaaf38390a89039d5fb93b2fd44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Test break and continue in loops.
// Ref: false

---
#for i in range(10) {
  if i > 5 {
    // Error: 5-10 break is not yet implemented
    break
  }
}

---
// Error: 1-10 unexpected keyword `continue`
#continue