Daily bump.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / b16483.d
blob2bfc2ef1cd1a5364be06d6e5b14491978d77b993
1 struct S
3 enum a = is(typeof(false.bar!(x => x))); // The lambda compiles
4 enum b = is(typeof(false.bar!(x => y))); // The lambda doesn't compile
6 auto bar(alias foo)(bool var)
8 return foo(var);
10 static assert(is(typeof(S.a) == bool));
11 static assert(S.a == true);
12 static assert(S.b == false);