| 1 |
// REQUIRED_ARGS: |
| 2 |
// EXTRA_FILES: imports/test15857a.d imports/test15857b.d imports/test15857c.d |
| 3 |
|
| 4 |
// https://issues.dlang.org/show_bug.cgi?id=15825 |
| 5 |
|
| 6 |
template anySatisfy15825(T...) |
| 7 |
{ |
| 8 |
alias anySatisfy15825 = T[$ - 1]; |
| 9 |
} |
| 10 |
|
| 11 |
alias T15825 = anySatisfy15825!(int); |
| 12 |
|
| 13 |
// https://issues.dlang.org/show_bug.cgi?id=15857 |
| 14 |
|
| 15 |
template Mix15857(T) |
| 16 |
{ |
| 17 |
void foo15857(T) {} |
| 18 |
} |
| 19 |
mixin Mix15857!int; |
| 20 |
mixin Mix15857!string; |
| 21 |
|
| 22 |
// will find an overloadset on 2nd lookup w/ SearchImportsOnly set |
| 23 |
import imports.test15857a; |
| 24 |
|
| 25 |
void test15857() |
| 26 |
{ |
| 27 |
foo15857(1); |
| 28 |
bar15857(1); |
| 29 |
} |