@@ -178,15 +178,19 @@ $(GNAME ImportDeclaration):
178
178
179
179
$(GNAME ImportList):
180
180
$(I Import)
181
+ $(I ImportBindings)
181
182
$(I Import) $(D ,) $(I ImportList)
182
183
183
184
$(GNAME Import):
184
185
$(I ModuleFullyQualifiedName)
185
186
$(I ModuleAliasIdentifier) $(D =) $(I ModuleFullyQualifiedName)
186
- $(I ImportBindings)
187
187
188
188
$(GNAME ImportBindings):
189
- $(I Import) $(D :) $(I ImportBind)
189
+ $(I Import) $(D :) $(I ImportBindList)
190
+
191
+ $(GNAME ImportBindList):
192
+ $(I ImportBind)
193
+ $(I ImportBind) $(D ,) $(I ImportBindList)
190
194
191
195
$(GNAME ImportBind):
192
196
$(I Identifier)
@@ -403,23 +407,6 @@ void main()
403
407
404
408
$(P $(D static) cannot be used with selective imports.)
405
409
406
- $(P Selective `import`s can be made from multiple modules if
407
- all `import`s are selective, or when the imported module has a qualified name:)
408
-
409
- $(SPEC_RUNNABLE_EXAMPLE_COMPILE
410
- ---
411
- import std.stdio : writeln, writefln, std.file : write, std.ascii;
412
-
413
- void main()
414
- {
415
- writeln("hello!"); // ok, writeln from std.stdio
416
- writefln("%s!", "hello"); // ok, writefln from std.stdio
417
- write("world.txt", "hello"); // ok, write from std.file
418
- writeln(digits); // ok, digits from std.ascii
419
- }
420
- ---
421
- )
422
-
423
410
$(H2 $(LNAME2 renamed_selective_imports, Renamed and Selective Imports))
424
411
425
412
$(P When renaming and selective importing are combined:)
0 commit comments