Bad error message "could not resolve" #3548

lhupfeldt opened this Issue Nov 16, 2015 · 3 comments


None yet

3 participants

import tables

var ttt = initTable[string, int](8)
ttt["a"] = "b"

results in the following error message:

Error: could not resolve: ttt["a"]

The error should mention the fact that "b" is type string but an int is expected

dom96 commented Apr 4, 2016

In certain cases this error message is really confusing:

proc foo(count: Natural) =
  for i in 0..count:
    echo("asd"[i .. i+1])

Results in:

Error: could not resolve: "asd"[i .. i + 1]

what does it mean? i'm getting this while trying to do echo request.headers["Authorization"] in a jester route


nvm figured it out, [] and other procs for httpHeaders are actually defined in httpcore, so I had to import it. why don't i get the undeclared field error i usually get though?

@Araq Araq added a commit that closed this issue Jul 14, 2016
@Araq Araq fixes #3548 db56174
@Araq Araq closed this in db56174 Jul 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment