Here is another proof inspired by the sequential proof in the $\mathbb{R}^n$ case.
Let $x\in \overline{A + B}$. Let us show that it is in fact in $A+B$.
I assume the topological vector space $X$ is Hausdorff so that $\displaystyle \bigcap_{i\in I} V_i = \{x\}$ where $V_i$ runs over all neighborhoods of $x$.
By definition of being in the adherence, $\forall\ i\in I,\enspace V_i \cap (A+B) \neq \emptyset$. Let us introduce the compact subset
$$K_i := \overline{\left\lbrace a \in A,\ \exists\, b\in B,\ a+b \in V_i \right\rbrace } \subset A$$
(compact as a closed subset of the compact subset $A$).
If $\ \displaystyle \bigcap_{i\in I} K_i = \emptyset $ then by the finite intersection property of compact sets, $\exists\ J \subset I,\ J$ finite such that $\ \displaystyle\bigcap_{j\in J} K_j = \emptyset $ but this means that
$$ \left(\bigcap_{j\in J} V_j \right)\cap (A+B)= \emptyset $$
but since a finite intersection of neighborhoods of $x$ is also a neighborhood of it, this contradicts the fact that $x\in \overline{A + B}$.
Hence $\ \displaystyle \bigcap_{i\in I} K_i \neq \emptyset ,\ \exists\ a_0\in A$ s.t. $\forall\ i\in I,\ \exists\ b_i \in B,\ a_0 + b_i \in V_i$.
One may say that the function $i \mapsto a_0 + b_i $ has limit $x$ "along the filter $I$" and thus that
$$\lim_{\overset{\longrightarrow}{I}} b_i = x - a_0=: b_0 \in B$$
since the latter is closed. Finally, one does have $x=a_0 + b_0 $ with $a_0 \in A,\ b_0\in B$.
Comment:
- I was interested in a (general if possible) proof of this statement while reading the proof of Thm 1.7 p.7 of "Functional Analysis, Sobolev Spaces and Partial Differential Equations" (UTX, 2011) by H. Brezis, or while reading (ii) of the proof of Proposition 1.3 p.69 of "Eléments de distributions et d'équations aux dérivées partielles" by C. Zuily
- In fact there is a sequential proof for a slightly more general case in "Eléments de distributions et d'équations aux dérivées partielles" by C. Zuily, Proposition 6.3 p.79