If a user leave's an answer in a comment instead of an actual answer, then I would consider that to be fair game, with regard to someone else posting the comment as an answer, with the caveat that the copied answer must cite and link to the original comment...give credit where credit is due.
You can think of it this way: leaving answers in comments poses no risk to your reputation, since comments can't be downvoted when you're wrong. So it's easy to just post short answers (which aren't fully fleshed out) as comments, since there's no consequence to writing anything incorrect or poorly in that case. Thus, it also costs little time.
On the other hand, if someone takes that comment, fleshes it out into a full-fledged answer by adding more details, etc, then that person should get some credit (reputation) for doing so. They took the time to write a complete answer. That's something that has value in it...comments are second-class citizens on Stack Overflow, they're somewhat ephemeral, while answers are intended to withstand the test of time.
Additionally, the person who leaves an answer takes on all the risks associated with that if they get the answer wrong, i.e. downvotes. There has to be the possible benefit of upvotes to counter the associated risk.
Personally, however, I would make the answer community-wiki in the case of just a verbatim copy of a comment answer, without additional details.
Option: post your own full answer anyways
That being said, if someone takes a comment you left and posts it as an answer, if you come back within a reasonable time (like maybe a few days at most, though sooner is better) and post your own fully-fleshed out answer that expands on the comment that you left, then oftentimes the person who asked the question will decide to unaccept the other answer and accept yours instead...which is totally fine, in my opinion, since you were the person who came up with an answer in the first place.
Don't do this, however, if you're just going to take your comment and paste it verbatim into an answer, without adding additional details. Because then if someone else had already posted your comment as an answer (without adding additional details), then this is kind of an under-handed move, in my own opinion. You chose to post an answer as a comment, instead of a full-fledged answer, so you basically forfeited your opportunity to earn reputation for it.
Repost the Comment as an Answer: I don't want the reputation points, and I don't think the practice is worth encouraging.
that guy disagrees with that behaviour. Also in my case I post my own comment as an answer if 'user' says that it solved his problem. But the question is can we tackle this behaviour from 3rd users and how?