* preliminary fix for bad error message with const * add test case * fix tmatrixconcept and tmatrixlib
7 lines
172 B
Nim
7 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
|