https://issues.dlang.org/show_bug.cgi?id=18289
RazvanN <razvan.nitu1...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |razvan.nitu1...@gmail.com Resolution|--- |INVALID --- Comment #2 from RazvanN <razvan.nitu1...@gmail.com> --- This is not a bug. The alias parameter can be seen as a pointer that is stored inside the declaring struct. Since fun is static it should have no context pointer, therefore it cannot access the alias parameter. > Is it really expected for one case to succeed and the other to fail? Yes, because your opCall is static and cannot access anything in B's context. If you declare `A()` as static you will end up with the same error message. --