aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/testcheckimports.d
blob: 328b8a9825b12dbb00ecc44e038417f93f7d15e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// REQUIRED_ARGS: -transition=checkimports -de
/*
TEST_OUTPUT:
---
---
*/

// 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);
}