From c976cdbf639834c48277af79c73539462d465550 Mon Sep 17 00:00:00 2001 From: ncaq Date: Tue, 29 Oct 2013 07:06:13 +0900 Subject: [PATCH] Parser is class. Parser is not struct. --- autocomplete.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autocomplete.d b/autocomplete.d index e5be929..bce918f 100644 --- a/autocomplete.d +++ b/autocomplete.d @@ -304,7 +304,7 @@ void setCompletions(T)(ref AutocompleteResponse response, { auto h = i; skip(); - Parser p; + Parser p = new Parser(); p.setTokens(tokens[h .. i].array()); if (!p.isSliceExpression()) { @@ -320,7 +320,7 @@ void setCompletions(T)(ref AutocompleteResponse response, { auto h = i; skip(); - Parser p; + Parser p = new Parser(); p.setTokens(tokens[h .. i].array()); ACSymbol[] overloads; if (p.isSliceExpression())