Skip to content

Commit

Permalink
Merge pull request #7939 from wilzbach/revert-6589
Browse files Browse the repository at this point in the history
Revert "fix Issue 13855 - multi-module selective import statements"
merged-on-behalf-of: unknown
  • Loading branch information
dlang-bot authored Feb 23, 2018
2 parents 08e3b8f + ddbdfb4 commit 3955897
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 46 deletions.
19 changes: 0 additions & 19 deletions changelog/multi_module_selective_imports.dd

This file was deleted.

7 changes: 1 addition & 6 deletions src/dmd/parse.d
Original file line number Diff line number Diff line change
Expand Up @@ -3275,14 +3275,9 @@ final class Parser(AST) : Lexer
_alias = null;
}
s.addAlias(name, _alias);
if (token.value != TOK.comma)
break;
// recognize import pkg.mod1 : a, b, pkg.mod2;
if (peekNext2 == TOK.dot || // pkg . mod2
peekNext2 == TOK.colon) // mod2 : c
break; // parse another import
}
while (token.value == TOK.comma);
break; // no comma-separated imports of this form
}
aliasid = null;
}
Expand Down
3 changes: 0 additions & 3 deletions test/compilable/enh13855.d

This file was deleted.

8 changes: 0 additions & 8 deletions test/fail_compilation/enh13855a.d

This file was deleted.

10 changes: 0 additions & 10 deletions test/fail_compilation/enh13855b.d

This file was deleted.

0 comments on commit 3955897

Please sign in to comment.