The following compiles. Not sure if this is a bug or a feature, so I'm reporting this as a bug. Close as invalid if it's actually a feature. class X { void x(int a) { } } void main() { static assert(is( typeof({ X.x(1); }) )); }
It's definitely a bug. Fixing it requires moving the check for the error from e2ir.c to semantic().
*** Issue 4545 has been marked as a duplicate of this issue. ***
Fixed from 2.063.