Produces strange type mismatch error

hasMatchingSymbol reported error: type mismatch;
 found   : foo.A
 required: String
  val r1 = q"$c1"
           ^
Trying to correctly handle the arguments

hasMatchingSymbol reported error: overloaded method value Apply with alternatives:
  (sym: universe.Symbol,args: universe.Tree*)universe.Tree <and>
  => universe.ApplyExtractor
 cannot be applied to (universe.Select, universe.Select)
  val r1 = q"$c1"
           ^