Small update of the French translation
[geany-mirror.git] / tests / ctags / simple.d
blobb5c5112283b9b7a3470562a93b426dcab5f1748e
1 module test.simple;
3 import std.stdio;
5 alias AliasInt = int;
7 struct Struct
9 union Union
11 bool quxx;
12 int qar;
16 enum Enum : int
18 foo,
19 bar,
22 interface Interface
24 public AliasInt bar();
27 class Class : Interface
29 private AliasInt _bar;
31 public this(AliasInt x)
33 this._bar = x;
36 public AliasInt bar()
38 return this._bar;
41 protected:
42 auto tfun(T)(T v)
44 return v;
48 public
50 int missing; // FIXME - parse protection blocks
53 template Template(alias a, T...)
55 alias TemplateAlias = a!T;
58 Object obj;
60 private:
61 int i;
63 /+
64 int error;
67 static if (is(typeof(__traits(getMember, a, name)) == function))
68 T conditional;
70 static assert( num < TL.length, "Name '"~name~"' is not found");
72 __gshared int globalVar;
74 void main(string[] args)
76 auto foo = new Class(1337);
78 alias string AliasString;
79 AliasString baz = "Hello, World!";
81 writefln("%s", foo.bar());