d: Merge upstream dmd, druntime 26f049fb26, phobos 330d6a4fd.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / test16083.d
blobf12b4523999f1c6fffeb06251d4271900f6616a6
1 template Alias(Stuff...)
3 alias Alias = Stuff;
6 enum A { a = 0 }
7 enum B { b = 0 }
9 enum C { c = "abc" }
10 enum D { d = "abc" }
12 static assert(is(typeof(Alias!(A.a)[0]) == A));
13 static assert(is(typeof(Alias!(B.b)[0]) == B));
14 static assert(is(typeof(Alias!(C.c)[0]) == C));
15 static assert(is(typeof(Alias!(D.d)[0]) == D));