blob: 2bfc2ef1cd1a5364be06d6e5b14491978d77b993 [file] [log] [blame]
struct S
{
enum a = is(typeof(false.bar!(x => x))); // The lambda compiles
enum b = is(typeof(false.bar!(x => y))); // The lambda doesn't compile
}
auto bar(alias foo)(bool var)
{
return foo(var);
}
static assert(is(typeof(S.a) == bool));
static assert(S.a == true);
static assert(S.b == false);