This commit is contained in:
Hackerpilot 2015-05-13 14:43:42 -07:00
parent 4fff6dc635
commit 070bbcdd1d
4 changed files with 11 additions and 1 deletions

View File

@ -301,7 +301,8 @@ private:
{ {
break; break;
} }
else if ((t == tok!"import" && !currentIs(tok!"import") && !currentIs(tok!"}"))) else if (t == tok!"import" && !currentIs(tok!"import") && !currentIs(tok!"}")
&& !(currentIs(tok!"public") && peekIs(tok!"import")))
{ {
simpleNewline(); simpleNewline();
currentLineLength = 0; currentLineLength = 0;

View File

@ -0,0 +1,3 @@
import foo;
public import bar;
import baz;

3
tests/issue0155.d Normal file
View File

@ -0,0 +1,3 @@
import foo;
public import bar;
import baz;

View File

@ -0,0 +1,3 @@
import foo;
public import bar;
import baz;