(This is a respin of jpp's deleted answer, infused with my own views on the matter.)
Consider posting your solution as a self-answered question. Before you actually do that, though, carefully review the appropriateness of both your question and the existing one. There are three relevant scenarios:
If your question turns out to be inappropriate (i.e. if posted in the absence of the other question, it should be closed), you obviously shouldn't post it, unless you can tweak it into something appropriate.
If your question is appropriate but the preexisting question isn't (i.e. it should remain closed), that must mean there is some difference between the questions that justifies the existence of your question, so just post it. (A possible exception is if the issue that led to the closure of the preexisting question is easy to fix. In that case, see the next scenario.)
If both your question and the preexisting one are appropriate, that means your question is a duplicate, and the preexisting question was wrongly closed. That being so, the ideal outcome would be getting the question reopened and then adding your answer to it. Steps for doing so include casting a reopen vote, improving the question by editing it and, if necessary, raise the issue on Meta (which, in this case, seems to have worked).
In the (hopefully unlikely) case that, after several days, you have tried your best to get the question reopened but no progress was made and, after careful consideration accounting for the site rules and the views of your fellow users, you remain convinced that both questions are appropriate... go ahead and post your question. Yes, it will be a duplicate -- but you shouldn't be stopped from adding useful, on-topic and appropriate content due to a catch-22 borne out of a poor closing decision. To make future maintenance of the questions easier, you can use comments to explain the unusual situation and cross-link the questions. (In your comment to the preexisting question, you might even add a remark to the effect of "please ping me if this question ever gets reopened, so that I can close my question as a duplicate and move my answer here".)
In the (hopefully unlikely) case that, after several days, you have tried your best to get the question reopened but no progress was made and, after careful consideration accounting for the site rules and the views of your fellow users, you remain convinced that both questions are appropriate... go ahead and post your question. Yes, it will be a duplicate -- but you shouldn't be stopped from adding useful, on-topic and appropriate content due to a catch-22 borne out of a poor closing decision. To make future maintenance of the questions easier, you can use comments to explain the unusual situation and cross-link the questions. (In your comment to the preexisting question, you might even add a remark to the effect of "please ping me if this question ever gets reopened, so that I can close my question as a duplicate and move my answer here".)
As for the specific question mentioned here, it clearly fits scenario #3: the closure appears to have been a classic case of bad close votes being cast on the basis of a supposed red flag. (The red flag, in this case, being the "What is the syntax" phrasing, which was likely misread into a request for a manual.)