Lines Matching refs:opCall
85 static if (is(typeof(fun.opCall) == function)) in needOpCallAlias()
120 alias unaryFun = fun.opCall;
153 static bool opCall(int n) { return true; } in opCall() function
166 bool opCall(int n) { return true; } in opCall() function
207 alias binaryFun = fun.opCall;
239 static bool opCall(int x, int y) { return true; } in opCall() function
246 bool opCall(int x, int y) { return true; } in opCall() function
756 static string opCall(string a, string b) { return a ~ b; } in opCall() function
757 int opCall(int a, int b) { return a * b; } in opCall() function
758 double opCall(double a, double b) { return a + b; } in opCall() function
767 auto opCall(A, B)(A a, B b) in opCall() function
1335 else static if (is(typeof(&F.opCall) == delegate)
1336 || (is(typeof(&F.opCall) V : V*) && is(V == function)))
1338 return toDelegate(&fp.opCall);
1398 interface I { int opCall(); }
1399 class C: I { int opCall() { inc(myNum); return myNum;} }
1409 struct S1 { int opCall() { inc(myNum); return myNum; } }
1410 static assert(!is(typeof(&s1.opCall) == delegate));
1415 struct S2 { static int opCall() { return 123456; } }
1416 static assert(!is(typeof(&S2.opCall) == delegate));
1418 auto getvals2 =&S2.opCall;