summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/d/40010-template.d
blob: eaad2b5d824cb2508796b0cfab4e66ef58f122e6 (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
template Foo                (T, U)
{
    class Bar { }

    T foo(T t, U u)
    {
    }

    T abc;

    typedef T            *FooType;
    typedef Tte          **FooType0;
    typedef int          *FooType1;
    typedef const char   FooType2;
}

alias Foo!(int, char) f;
f.Bar b;
f.foo(1, 2);
f.abc = 3;

to!string(10.0);
TFoo!int.t x;

class Abc                                (T)
{
    T t;
}