code:
---
struct Foo
{
    bool opIn_r(T)(T t){return false;}
}

static immutable Foo foo; // ouch
//static Foo foo; // OK

void main()
{
    assert("a" !in foo);
}
---

output:
---
Error: template Foo.opIn_r cannot deduce function from argument types !()(string) immutable, candidates are:
runnable.Foo.opIn_r(T)(T t)
---

Reply via email to