tconstinfo.nim 172 B

12345678
  1. # https://forum.nim-lang.org/t/9762
  2. const foo = "abc"
  3. case 'a'
  4. of foo: echo "should error" #[tt.Error
  5. ^ type mismatch: got <string> but expected 'char']#
  6. else: discard