Handle dollar methods correctly:

class A {
 $() : void;
}