mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Add unreachable
This commit is contained in:
parent
4068a5ba07
commit
52a00930f4
2 changed files with 11 additions and 2 deletions
|
@ -3,9 +3,9 @@ sum2 [x, y]: [Nat; 2] =
|
|||
|
||||
print! sum2 [1, 2]
|
||||
|
||||
x = match "c" + "":
|
||||
x = match "a" + "":
|
||||
"a" -> 1
|
||||
"b" -> 2
|
||||
_ -> 3
|
||||
_ -> unreachable()
|
||||
|
||||
print! x
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue