mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
29 lines
556 B
D
29 lines
556 B
D
// REQUIRED_ARGS:
|
|
// EXTRA_FILES: imports/test15857a.d imports/test15857b.d imports/test15857c.d
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=15825
|
|
|
|
template anySatisfy15825(T...)
|
|
{
|
|
alias anySatisfy15825 = T[$ - 1];
|
|
}
|
|
|
|
alias T15825 = anySatisfy15825!(int);
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=15857
|
|
|
|
template Mix15857(T)
|
|
{
|
|
void foo15857(T) {}
|
|
}
|
|
mixin Mix15857!int;
|
|
mixin Mix15857!string;
|
|
|
|
// will find an overloadset on 2nd lookup w/ SearchImportsOnly set
|
|
import imports.test15857a;
|
|
|
|
void test15857()
|
|
{
|
|
foo15857(1);
|
|
bar15857(1);
|
|
}
|