mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
* preliminary fix for bad error message with const * add test case * fix tmatrixconcept and tmatrixlib
8 lines
172 B
Nim
8 lines
172 B
Nim
# https://forum.nim-lang.org/t/9762
|
|
|
|
const foo = "abc"
|
|
case 'a'
|
|
of foo: echo "should error" #[tt.Error
|
|
^ type mismatch: got <string> but expected 'char']#
|
|
else: discard
|