-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
proc case_test(): string =
case "1":
of "": return "empty"
of "a": return "aye"
of "b": return "bee"
echo (case_test())Given this program, I'm expecting the exhaustiveness checker to complain and not compile. But it compiles, returns an empty string, and a 0 exit code.
Additional Information
$ nim -v
Nim Compiler Version 0.20.0
haltcase