Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DSSv3] Issue 21637: trailing comma in import list #3079

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions spec/module.dd
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,30 @@ void main()
---
)

$(P There can also be a trailing comma at the end of the import list:)

$(RUNNABLE_EXAMPLE
---
void foo()
{
import std.stdio: writeln, write,;
write("foo");
}

void bar()
{
import std.stdio: writeln,;
writeln("bar");
}

int main() {
foo();
bar();
return 1;
}
---
)

$(P $(D static) cannot be used with selective imports.)

$(H2 $(LNAME2 renamed_selective_imports, Renamed and Selective Imports))
Expand Down