mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
20 lines
472 B
D
20 lines
472 B
D
// COMPILE_SEPARATELY:
|
|
// EXTRA_SOURCES: imports/test7494a.d
|
|
// PERMUTE_ARGS:
|
|
// REQUIRED_ARGS:
|
|
|
|
module test7494;
|
|
|
|
void main()
|
|
{
|
|
import imports.test7494a : map; // selective
|
|
import imports.test7494a : put = writeln; // selective + rename
|
|
auto r = map!(a=>a)([1,2,3]);
|
|
assert(r == [4,5,6]);
|
|
put(r);
|
|
static assert(!__traits(compiles, foo()));
|
|
|
|
import core.bitop : bsr;
|
|
// ^ or just any selective import statements
|
|
bsr(1);
|
|
}
|